mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-10-30 03:36:16 +00:00
miscellaneous
This commit is contained in:
parent
dd40d7ea37
commit
012569b942
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
mycorrhiza
|
mycorrhiza
|
||||||
|
demo
|
BIN
demo/static/favicon.ico
Normal file
BIN
demo/static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
@ -18,7 +18,7 @@
|
|||||||
"lock_title": "Locked",
|
"lock_title": "Locked",
|
||||||
|
|
||||||
"password_tip": "The server stores your password in an encrypted form; even administrators cannot read it.",
|
"password_tip": "The server stores your password in an encrypted form; even administrators cannot read it.",
|
||||||
"cookie_tip": "By submitting this form you give this wiki a permission to store cookies in your browser. It lets the engine associate your edits with you. You will stay logged in until you log out.",
|
"cookie_tip": "By submitting this form you give this wiki your soul, thoughts and mind. It lets the engine associate your edits with you. You will stay logged in until you log out.",
|
||||||
"telegram_tip": "You can log in using Telegram. It only works if you have set your @username in Telegram and this username is free on this wiki.",
|
"telegram_tip": "You can log in using Telegram. It only works if you have set your @username in Telegram and this username is free on this wiki.",
|
||||||
|
|
||||||
"noauth": "Authentication is disabled. You can make edits anonymously.",
|
"noauth": "Authentication is disabled. You can make edits anonymously.",
|
||||||
|
@ -11,47 +11,47 @@
|
|||||||
"delete_link": "Delete",
|
"delete_link": "Delete",
|
||||||
"text_link": "View markup",
|
"text_link": "View markup",
|
||||||
"media_link": "Manage media",
|
"media_link": "Manage media",
|
||||||
"media_link_for_textual": "Turn to media hypha",
|
"media_link_for_textual": "Turn to media page",
|
||||||
"backlinks_link": "{{.n}} backlink%s",
|
"backlinks_link": "{{.n}} backlink%s",
|
||||||
"backlinks_link+one": "",
|
"backlinks_link+one": "",
|
||||||
"backlinks_link+other": "s",
|
"backlinks_link+other": "s",
|
||||||
|
|
||||||
"subhyphae": "Subhyphae",
|
"subhyphae": "Subpages",
|
||||||
|
|
||||||
"random_no_hyphae": "There are no hyphae",
|
"random_no_hyphae": "There are no pages",
|
||||||
"random_no_hyphae_tip": "It is impossible to display a random hypha because the wiki does not contain any hyphae",
|
"random_no_hyphae_tip": "It is impossible to display a random page because the wiki does not contain any pages",
|
||||||
|
|
||||||
"error": "Error",
|
"error": "Error",
|
||||||
"error_text_fetch": "Could not fetch text data",
|
"error_text_fetch": "Could not fetch text data",
|
||||||
"error_try_again": "Try again",
|
"error_try_again": "Try again",
|
||||||
"error_go_back": "Go back to the hypha.",
|
"error_go_back": "Go back to the page.",
|
||||||
|
|
||||||
"ask_rename": "Rename %s",
|
"ask_rename": "Rename %s",
|
||||||
"rename_to": "New name",
|
"rename_to": "New name",
|
||||||
"rename_recurse": "Rename subhyphae too",
|
"rename_recurse": "Rename subpages too",
|
||||||
"rename_tip": "If you rename this hypha, all incoming links and all relative outcoming links will break. You will also lose all history for the new name. Rename carefully.",
|
"rename_tip": "If you rename this page, all incoming links and all relative outcoming links will break. You will also lose all history for the new name. Rename carefully.",
|
||||||
"rename_taken": "Name taken",
|
"rename_taken": "Name taken",
|
||||||
"rename_taken_tip": "Hypha named {{.name}} already exists, cannot rename",
|
"rename_taken_tip": "page named {{.name}} already exists, cannot rename",
|
||||||
"rename_noname": "No name given",
|
"rename_noname": "No name given",
|
||||||
"rename_noname_tip": "No new name is given",
|
"rename_noname_tip": "No new name is given",
|
||||||
"rename_badname": "Invalid name",
|
"rename_badname": "Invalid name",
|
||||||
"rename_badname_tip": "Invalid new name. Names cannot contain characters {{.chars}}.",
|
"rename_badname_tip": "Invalid new name. Names cannot contain characters {{.chars}}.",
|
||||||
|
|
||||||
"act_no_media": "No media",
|
"act_no_media": "No media",
|
||||||
"act_no_media_tip": "Cannot remove media because this is not a media hypha",
|
"act_no_media_tip": "Cannot remove media because this is not a media page",
|
||||||
"act_norights": "Not enough rights",
|
"act_norights": "Not enough rights",
|
||||||
"act_notexist": "Does not exist",
|
"act_notexist": "Does not exist",
|
||||||
"act_norights_delete": "Not enough rights to delete, you must be a moderator",
|
"act_norights_delete": "Not enough rights to delete, you must be a moderator",
|
||||||
"act_notexist_delete": "Cannot delete this hypha because it does not exist",
|
"act_notexist_delete": "Cannot delete this page because it does not exist",
|
||||||
"act_norights_rename": "Not enough rights to rename, you must be a trusted editor",
|
"act_norights_rename": "Not enough rights to rename, you must be a trusted editor",
|
||||||
"act_notexist_rename": "Cannot rename this hypha because it does not exist",
|
"act_notexist_rename": "Cannot rename this page because it does not exist",
|
||||||
"act_norights_remove_media": "Not enough rights to remove media, you must be a trusted editor",
|
"act_norights_remove_media": "Not enough rights to remove media, you must be a trusted editor",
|
||||||
"act_notexist_remove_media": "Cannot remove media because this hypha does not exist",
|
"act_notexist_remove_media": "Cannot remove media because this page does not exist",
|
||||||
"act_norights_edit": "You must be an editor to edit a hypha",
|
"act_norights_edit": "You must be an editor to edit a page",
|
||||||
"act_norights_upload_media": "You must be an editor to upload media",
|
"act_norights_upload_media": "You must be an editor to upload media",
|
||||||
|
|
||||||
"ask_remove_media": "Remove media from %s?",
|
"ask_remove_media": "Remove media from %s?",
|
||||||
"ask_really": "Do you really want to {{.verb}} hypha {{.name}}?",
|
"ask_really": "Do you really want to {{.verb}} page {{.name}}?",
|
||||||
"ask_delete_verb": "delete",
|
"ask_delete_verb": "delete",
|
||||||
"ask_remove_media_verb": "remove_media",
|
"ask_remove_media_verb": "remove_media",
|
||||||
|
|
||||||
@ -60,14 +60,14 @@
|
|||||||
"revision_title": "{{.name}} at {{.rev}}",
|
"revision_title": "{{.name}} at {{.rev}}",
|
||||||
"revision_warning": "Please note that viewing media is not supported in history for now.",
|
"revision_warning": "Please note that viewing media is not supported in history for now.",
|
||||||
"revision_link": "Get Mycomarkup source of this revision",
|
"revision_link": "Get Mycomarkup source of this revision",
|
||||||
"revision_no_text": "This hypha had no text at this revision.",
|
"revision_no_text": "This page had no text at this revision.",
|
||||||
|
|
||||||
"about_title": "About {{.name}}",
|
"about_title": "About {{.name}}",
|
||||||
|
|
||||||
"users_title": "User list",
|
"users_title": "User list",
|
||||||
|
|
||||||
"no_rights": "Not enough rights",
|
"no_rights": "Not enough rights",
|
||||||
"reindex_no_rights": "You must be an admin to reindex hyphae.",
|
"reindex_no_rights": "You must be an admin to reindex pages.",
|
||||||
"header_no_rights": "You must be a moderator to update header links.",
|
"header_no_rights": "You must be a moderator to update header links.",
|
||||||
|
|
||||||
"media_download": "Download media",
|
"media_download": "Download media",
|
||||||
@ -77,8 +77,8 @@
|
|||||||
"media_noaudio_link": "Download audio",
|
"media_noaudio_link": "Download audio",
|
||||||
|
|
||||||
"media_title": "Media of {{.name}}",
|
"media_title": "Media of {{.name}}",
|
||||||
"media_empty": "This hypha has no media, you can upload it here.",
|
"media_empty": "This page has no media, you can upload it here.",
|
||||||
"media_tip": "You can manage the hypha's media on this page.",
|
"media_tip": "You can manage the page's media on this page.",
|
||||||
"media_what_is": "What is media?",
|
"media_what_is": "What is media?",
|
||||||
"media_upload": "Upload",
|
"media_upload": "Upload",
|
||||||
"media_stat": "Stat",
|
"media_stat": "Stat",
|
||||||
@ -88,7 +88,7 @@
|
|||||||
"media_size_value+other": "s",
|
"media_size_value+other": "s",
|
||||||
"media_stat_mime": "MIME type:",
|
"media_stat_mime": "MIME type:",
|
||||||
"media_include": "Include",
|
"media_include": "Include",
|
||||||
"media_include_tip": "This media is an image. To include it in a hypha, use a syntax like this:",
|
"media_include_tip": "This media is an image. To include it in a page, use a syntax like this:",
|
||||||
"media_new": "media",
|
"media_new": "media",
|
||||||
"media_new_tip": "You can upload a new media. Please do not upload too big pictures unless you need to because may not want to wait for big pictures to load.",
|
"media_new_tip": "You can upload a new media. Please do not upload too big pictures unless you need to because may not want to wait for big pictures to load.",
|
||||||
"media_remove": "Remove media",
|
"media_remove": "Remove media",
|
||||||
|
@ -50,6 +50,8 @@ var mapMime2Ext = map[string]string{
|
|||||||
"video/webm": "webm",
|
"video/webm": "webm",
|
||||||
"audio/mp3": "mp3",
|
"audio/mp3": "mp3",
|
||||||
"video/mp4": "mp4",
|
"video/mp4": "mp4",
|
||||||
|
"application/pdf": "pdf",
|
||||||
|
"audio/mpeg": "mp3",
|
||||||
}
|
}
|
||||||
|
|
||||||
var mapExt2Mime = map[string]string{
|
var mapExt2Mime = map[string]string{
|
||||||
@ -65,4 +67,5 @@ var mapExt2Mime = map[string]string{
|
|||||||
".webm": "video/webm",
|
".webm": "video/webm",
|
||||||
".mp3": "audio/mp3",
|
".mp3": "audio/mp3",
|
||||||
".mp4": "video/mp4",
|
".mp4": "video/mp4",
|
||||||
|
".pdf": "application/pdf",
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ func SetHeaderLinks() {
|
|||||||
func setDefaultHeaderLinks() {
|
func setDefaultHeaderLinks() {
|
||||||
viewutil.HeaderLinks = []viewutil.HeaderLink{
|
viewutil.HeaderLinks = []viewutil.HeaderLink{
|
||||||
{"/recent-changes", "Recent changes"},
|
{"/recent-changes", "Recent changes"},
|
||||||
{"/list", "All hyphae"},
|
{"/list", "All pages"},
|
||||||
{"/random", "Random"},
|
{"/random", "Random"},
|
||||||
{"/help", "Help"},
|
{"/help", "Help"},
|
||||||
{"/category", "Categories"},
|
{"/category", "Categories"},
|
||||||
|
@ -21,7 +21,23 @@ ol:not(.mycomarkup-doc ol) a:hover { text-decoration: underline; }
|
|||||||
/* General element positions, from small to big */
|
/* General element positions, from small to big */
|
||||||
/* Phones and whatnot */
|
/* Phones and whatnot */
|
||||||
body { display: grid; row-gap: .5rem; }
|
body { display: grid; row-gap: .5rem; }
|
||||||
header { width: 100%; }
|
header { width: 100%; display: flex; }
|
||||||
|
.logo {
|
||||||
|
padding-left: 3em;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
.logo img {
|
||||||
|
height: 4em;
|
||||||
|
}
|
||||||
|
.logo .ominous {
|
||||||
|
width: 8em;
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
padding-left: 0.5em;
|
||||||
|
}
|
||||||
|
.logo .ominous span {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.layout-card li { list-style-type: none; }
|
.layout-card li { list-style-type: none; }
|
||||||
|
|
||||||
@ -30,6 +46,7 @@ header { width: 100%; }
|
|||||||
body { grid-template-columns: auto; grid-template-rows: auto auto auto; }
|
body { grid-template-columns: auto; grid-template-rows: auto auto auto; }
|
||||||
.main-width { width: 100%; }
|
.main-width { width: 100%; }
|
||||||
main { padding: .5rem 1rem 1rem 1rem; }
|
main { padding: .5rem 1rem 1rem 1rem; }
|
||||||
|
.logo .ominous { display: none; }
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 500px) {
|
@media screen and (min-width: 500px) {
|
||||||
|
BIN
static/icon/euler.png
Normal file
BIN
static/icon/euler.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
@ -16,6 +16,10 @@
|
|||||||
</head>
|
</head>
|
||||||
<body data-rrh-addr="{{if .Addr}}{{.Addr}}{{else}}{{.Meta.Addr}}{{end}}"{{range $key, $value := .BodyAttributes}} data-rrh-{{$key}}="{{$value}}"{{end}}>
|
<body data-rrh-addr="{{if .Addr}}{{.Addr}}{{else}}{{.Meta.Addr}}{{end}}"{{range $key, $value := .BodyAttributes}} data-rrh-{{$key}}="{{$value}}"{{end}}>
|
||||||
<header>
|
<header>
|
||||||
|
<div class="logo">
|
||||||
|
<img src="/static/favicon.ico" alt="A picture of Euler, stretched into a square" />
|
||||||
|
<div class="ominous"><span>It's already far too late.</span></div>
|
||||||
|
</div>
|
||||||
<nav class="main-width top-bar">
|
<nav class="main-width top-bar">
|
||||||
<ul class="top-bar__wrapper">
|
<ul class="top-bar__wrapper">
|
||||||
<li class="top-bar__section top-bar__section_home">
|
<li class="top-bar__section top-bar__section_home">
|
||||||
|
Loading…
Reference in New Issue
Block a user