merge mk_district #2
No files matched your search
+114
-62
@@ -6,70 +6,122 @@ import (
|
||||
|
||||
var translations = map[string]map[string]string{
|
||||
"en": {
|
||||
"config.title": "Config",
|
||||
"config.home": "Home",
|
||||
"config.wiki_name": "Wiki name",
|
||||
"config.locale": "Language",
|
||||
"config.timezone": "Timezone",
|
||||
"config.theme": "Theme",
|
||||
"config.zombie_grace_hours": "Zombie grace period (hours)",
|
||||
"config.home_path": "Home semantic path",
|
||||
"config.save": "Save",
|
||||
"config.nav": "Navigation",
|
||||
"config.objects": "Recent Objects",
|
||||
"config.primary": "Primary Link",
|
||||
"config.size": "Size",
|
||||
"config.updated": "Updated",
|
||||
"config.object": "Object",
|
||||
"config.nav_label": "Label",
|
||||
"config.nav_href": "Href",
|
||||
"config.nav_order": "Order",
|
||||
"config.nav_save": "Save Navigation",
|
||||
"config.nav_home": "Home Navigation",
|
||||
"config.nav_system": "System Navigation",
|
||||
"link.title": "Link Manager",
|
||||
"link.object": "Object",
|
||||
"link.primary": "Primary",
|
||||
"link.path": "Path",
|
||||
"link.linked_at": "Linked At",
|
||||
"link.action": "Action",
|
||||
"link.delete": "Delete",
|
||||
"link.add": "Add",
|
||||
"link.add_path": "Add Link",
|
||||
"link.placeholder": "/pageswiki/example",
|
||||
"config.title": "Config",
|
||||
"config.home": "Home",
|
||||
"config.wiki_name": "Wiki name",
|
||||
"config.locale": "Language",
|
||||
"config.timezone": "Timezone",
|
||||
"config.theme": "Theme",
|
||||
"config.zombie_grace_hours": "Zombie grace period (hours)",
|
||||
"config.home_path": "Home semantic path",
|
||||
"config.save": "Save",
|
||||
"config.nav": "Navigation",
|
||||
"config.objects": "Recent Objects",
|
||||
"config.primary": "Primary Link",
|
||||
"config.size": "Size",
|
||||
"config.updated": "Updated",
|
||||
"config.object": "Object",
|
||||
"config.nav_label": "Label",
|
||||
"config.nav_href": "Href",
|
||||
"config.nav_order": "Order",
|
||||
"config.nav_save": "Save Navigation",
|
||||
"config.nav_home": "Home Navigation",
|
||||
"config.nav_system": "System Navigation",
|
||||
"config.editor": "Editor",
|
||||
"config.keymap": "Keymap",
|
||||
"config.keymap_default": "Default",
|
||||
"config.syntax_highlight": "Syntax highlighting",
|
||||
"config.autocomplete": "Autocomplete",
|
||||
"config.districts": "Districts",
|
||||
"config.current_district": "Current District",
|
||||
"config.district_help": "Districts are selected from the request host. The domain may be a full host or a subdomain label.",
|
||||
"config.id": "ID",
|
||||
"config.name": "Name",
|
||||
"config.district_title": "Title",
|
||||
"config.domain": "Domain",
|
||||
"config.enabled": "Enabled",
|
||||
"config.created": "Created",
|
||||
"config.actions": "Actions",
|
||||
"config.create_district": "Create District",
|
||||
"config.create": "Create",
|
||||
"config.delete": "Delete",
|
||||
"config.delete_district_confirm": "Delete this district?",
|
||||
"config.unlinked": "unlinked",
|
||||
"config.zombie_objects": "Zombie Objects",
|
||||
"config.zombie_help": "Unlinked and empty objects older than the grace period.",
|
||||
"config.revisions": "Revisions",
|
||||
"config.max_body": "Max Body",
|
||||
"config.purge_zombies": "Purge Zombies",
|
||||
"config.purge_zombies_confirm": "Purge zombie objects?",
|
||||
"link.title": "Link Manager",
|
||||
"link.object": "Object",
|
||||
"link.primary": "Primary",
|
||||
"link.path": "Path",
|
||||
"link.linked_at": "Linked At",
|
||||
"link.action": "Action",
|
||||
"link.delete": "Delete",
|
||||
"link.add": "Add",
|
||||
"link.add_path": "Add Link",
|
||||
"link.placeholder": "/pageswiki/example",
|
||||
},
|
||||
"ja": {
|
||||
"config.title": "設定",
|
||||
"config.home": "ホーム",
|
||||
"config.wiki_name": "Wiki名称",
|
||||
"config.locale": "言語",
|
||||
"config.timezone": "タイムゾーン",
|
||||
"config.zombie_grace_hours": "ゾンビ判定猶予時間(時間)",
|
||||
"config.theme": "テーマ",
|
||||
"config.home_path": "トップページ",
|
||||
"config.save": "保存",
|
||||
"config.nav": "ナビゲーション",
|
||||
"config.nav_home": "ホームナビゲーション",
|
||||
"config.nav_system": "システムナビゲーション",
|
||||
"config.objects": "最近のオブジェクト",
|
||||
"link.title": "リンク管理",
|
||||
"link.object": "オブジェクト",
|
||||
"link.primary": "主リンク",
|
||||
"link.path": "パス",
|
||||
"link.linked_at": "リンクされた日時",
|
||||
"link.action": "操作",
|
||||
"link.delete": "削除",
|
||||
"link.add": "追加",
|
||||
"link.add_path": "リンクを追加",
|
||||
"link.placeholder": "/pageswiki/example",
|
||||
"config.primary": "主なリンク",
|
||||
"config.size": "サイズ",
|
||||
"config.updated": "最終更新",
|
||||
"config.object": "オブジェクト",
|
||||
"config.nav_label": "表示名",
|
||||
"config.nav_href": "リンク先",
|
||||
"config.nav_order": "順序",
|
||||
"config.nav_save": "ナビゲーションを保存",
|
||||
"config.title": "設定",
|
||||
"config.home": "ホーム",
|
||||
"config.wiki_name": "Wiki名称",
|
||||
"config.locale": "言語",
|
||||
"config.timezone": "タイムゾーン",
|
||||
"config.zombie_grace_hours": "ゾンビ判定猶予時間(時間)",
|
||||
"config.theme": "テーマ",
|
||||
"config.home_path": "トップページ",
|
||||
"config.save": "保存",
|
||||
"config.nav": "ナビゲーション",
|
||||
"config.nav_home": "ホームナビゲーション",
|
||||
"config.nav_system": "システムナビゲーション",
|
||||
"config.objects": "最近のオブジェクト",
|
||||
"link.title": "リンク管理",
|
||||
"link.object": "オブジェクト",
|
||||
"link.primary": "主リンク",
|
||||
"link.path": "パス",
|
||||
"link.linked_at": "リンクされた日時",
|
||||
"link.action": "操作",
|
||||
"link.delete": "削除",
|
||||
"link.add": "追加",
|
||||
"link.add_path": "リンクを追加",
|
||||
"link.placeholder": "/pageswiki/example",
|
||||
"config.primary": "主なリンク",
|
||||
"config.size": "サイズ",
|
||||
"config.updated": "最終更新",
|
||||
"config.object": "オブジェクト",
|
||||
"config.nav_label": "表示名",
|
||||
"config.nav_href": "リンク先",
|
||||
"config.nav_order": "順序",
|
||||
"config.nav_save": "ナビゲーションを保存",
|
||||
"config.editor": "エディタ",
|
||||
"config.keymap": "キーマップ",
|
||||
"config.keymap_default": "標準",
|
||||
"config.syntax_highlight": "構文ハイライト",
|
||||
"config.autocomplete": "入力補完",
|
||||
"config.districts": "District",
|
||||
"config.current_district": "現在のDistrict",
|
||||
"config.district_help": "DistrictはリクエストHostから選択されます。domainには完全なホスト名、またはサブドメイン名を指定できます。",
|
||||
"config.id": "ID",
|
||||
"config.name": "名前",
|
||||
"config.district_title": "タイトル",
|
||||
"config.domain": "ドメイン",
|
||||
"config.enabled": "有効",
|
||||
"config.created": "作成日時",
|
||||
"config.actions": "操作",
|
||||
"config.create_district": "Districtを作成",
|
||||
"config.create": "作成",
|
||||
"config.delete": "削除",
|
||||
"config.delete_district_confirm": "このDistrictを削除しますか?",
|
||||
"config.unlinked": "未リンク",
|
||||
"config.zombie_objects": "ゾンビオブジェクト",
|
||||
"config.zombie_help": "リンクされておらず、猶予時間を過ぎた空のオブジェクトです。",
|
||||
"config.revisions": "リビジョン",
|
||||
"config.max_body": "最大本文サイズ",
|
||||
"config.purge_zombies": "ゾンビを削除",
|
||||
"config.purge_zombies_confirm": "ゾンビオブジェクトを削除しますか?",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -51,11 +51,11 @@
|
||||
</a>
|
||||
|
||||
<a href="#" data-panel="editor" onclick="showConfigPanel('editor'); return false;">
|
||||
Editor
|
||||
{{ T "config.editor" }}
|
||||
</a>
|
||||
|
||||
<a href="#" data-panel="districts" onclick="showConfigPanel('districts'); return false;">
|
||||
Districts
|
||||
{{ T "config.districts" }}
|
||||
</a>
|
||||
|
||||
<a href="#" data-panel="objects" onclick="showConfigPanel('objects'); return false;">
|
||||
@@ -84,7 +84,7 @@ Districts
|
||||
<h1>{{ T "config.title" }}</h1>
|
||||
|
||||
<p class="muted">
|
||||
Current District:
|
||||
{{ T "config.current_district" }}:
|
||||
<span class="mono">{{ .Context.District.Name }}</span>
|
||||
/
|
||||
<span class="mono">{{ .Context.District.Title }}</span>
|
||||
@@ -194,7 +194,7 @@ English
|
||||
>
|
||||
<br>
|
||||
<button type="submit">
|
||||
Save
|
||||
{{ T "config.save" }}
|
||||
</button>
|
||||
|
||||
</form>
|
||||
@@ -206,23 +206,23 @@ Save
|
||||
class="config-section config-panel"
|
||||
>
|
||||
|
||||
<h2>Districts</h2>
|
||||
<h2>{{ T "config.districts" }}</h2>
|
||||
|
||||
<p class="muted">
|
||||
Districts are selected from the request host. The domain may be a full host or a subdomain label.
|
||||
{{ T "config.district_help" }}
|
||||
</p>
|
||||
|
||||
<table class="recent-table">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>Title</th>
|
||||
<th>Domain</th>
|
||||
<th>Enabled</th>
|
||||
<th>Created</th>
|
||||
<th>Actions</th>
|
||||
<th>{{ T "config.id" }}</th>
|
||||
<th>{{ T "config.name" }}</th>
|
||||
<th>{{ T "config.district_title" }}</th>
|
||||
<th>{{ T "config.domain" }}</th>
|
||||
<th>{{ T "config.enabled" }}</th>
|
||||
<th>{{ T "config.created" }}</th>
|
||||
<th>{{ T "config.actions" }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -242,7 +242,7 @@ Districts are selected from the request host. The domain may be a full host or a
|
||||
id="district-delete-{{ .ID }}"
|
||||
method="post"
|
||||
action="/-/sys/config"
|
||||
onsubmit="return confirm('Delete this district?')"
|
||||
onsubmit="return confirm('{{ T "config.delete_district_confirm" }}')"
|
||||
></form>
|
||||
<input
|
||||
form="district-update-{{ .ID }}"
|
||||
@@ -307,7 +307,7 @@ Districts are selected from the request host. The domain may be a full host or a
|
||||
value="1"
|
||||
{{ if .Enabled }}checked{{ end }}
|
||||
>
|
||||
Enabled
|
||||
{{ T "config.enabled" }}
|
||||
</label>
|
||||
</td>
|
||||
|
||||
@@ -320,13 +320,13 @@ Enabled
|
||||
form="district-update-{{ .ID }}"
|
||||
type="submit"
|
||||
>
|
||||
Save
|
||||
{{ T "config.save" }}
|
||||
</button>
|
||||
<button
|
||||
form="district-delete-{{ .ID }}"
|
||||
type="submit"
|
||||
>
|
||||
Delete
|
||||
{{ T "config.delete" }}
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -337,7 +337,7 @@ Delete
|
||||
|
||||
</table>
|
||||
|
||||
<h3>Create District</h3>
|
||||
<h3>{{ T "config.create_district" }}</h3>
|
||||
|
||||
<form
|
||||
method="post"
|
||||
@@ -351,7 +351,7 @@ Delete
|
||||
>
|
||||
|
||||
<label>
|
||||
Name
|
||||
{{ T "config.name" }}
|
||||
</label>
|
||||
<input
|
||||
name="district_name"
|
||||
@@ -363,7 +363,7 @@ Name
|
||||
<br>
|
||||
|
||||
<label>
|
||||
Title
|
||||
{{ T "config.district_title" }}
|
||||
</label>
|
||||
<input
|
||||
name="district_title"
|
||||
@@ -375,7 +375,7 @@ Title
|
||||
<br>
|
||||
|
||||
<label>
|
||||
Domain
|
||||
{{ T "config.domain" }}
|
||||
</label>
|
||||
<input
|
||||
name="district_domain"
|
||||
@@ -393,14 +393,14 @@ Domain
|
||||
value="1"
|
||||
checked
|
||||
>
|
||||
Enabled
|
||||
{{ T "config.enabled" }}
|
||||
</label>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<button type="submit">
|
||||
Create
|
||||
{{ T "config.create" }}
|
||||
</button>
|
||||
|
||||
</form>
|
||||
@@ -435,7 +435,7 @@ Create
|
||||
{{ if .Path }}
|
||||
<a href="{{ .Path }}">{{ .Path }}</a>
|
||||
{{ else }}
|
||||
<span class="muted">unlinked</span>
|
||||
<span class="muted">{{ T "config.unlinked" }}</span>
|
||||
{{ end }}
|
||||
</td>
|
||||
|
||||
@@ -459,10 +459,10 @@ Create
|
||||
|
||||
</table>
|
||||
|
||||
<h2>Zombie Objects</h2>
|
||||
<h2>{{ T "config.zombie_objects" }}</h2>
|
||||
|
||||
<p class="muted">
|
||||
Unlinked and empty objects older than the grace period.
|
||||
{{ T "config.zombie_help" }}
|
||||
</p>
|
||||
|
||||
<table class="recent-table">
|
||||
@@ -470,9 +470,9 @@ Unlinked and empty objects older than the grace period.
|
||||
<thead>
|
||||
<tr>
|
||||
<th>UUID</th>
|
||||
<th>Created</th>
|
||||
<th>Revisions</th>
|
||||
<th>Max Body</th>
|
||||
<th>{{ T "config.created" }}</th>
|
||||
<th>{{ T "config.revisions" }}</th>
|
||||
<th>{{ T "config.max_body" }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -507,7 +507,7 @@ Unlinked and empty objects older than the grace period.
|
||||
<form
|
||||
method="post"
|
||||
action="/-/sys/config"
|
||||
onsubmit="return confirm('Purge zombie objects?')"
|
||||
onsubmit="return confirm('{{ T "config.purge_zombies_confirm" }}')"
|
||||
>
|
||||
|
||||
<input
|
||||
@@ -517,7 +517,7 @@ Unlinked and empty objects older than the grace period.
|
||||
>
|
||||
|
||||
<button type="submit">
|
||||
Purge Zombies
|
||||
{{ T "config.purge_zombies" }}
|
||||
</button>
|
||||
|
||||
</form>
|
||||
@@ -587,7 +587,7 @@ Purge Zombies
|
||||
<input
|
||||
name="nav_label"
|
||||
type="text"
|
||||
placeholder="Label"
|
||||
placeholder="{{ T "config.nav_label" }}"
|
||||
>
|
||||
</td>
|
||||
|
||||
@@ -679,7 +679,7 @@ Purge Zombies
|
||||
<input
|
||||
name="nav_label"
|
||||
type="text"
|
||||
placeholder="Label"
|
||||
placeholder="{{ T "config.nav_label" }}"
|
||||
>
|
||||
</td>
|
||||
|
||||
@@ -714,7 +714,7 @@ Purge Zombies
|
||||
class="config-section config-panel"
|
||||
>
|
||||
|
||||
<h2>Editor</h2>
|
||||
<h2>{{ T "config.editor" }}</h2>
|
||||
|
||||
<form
|
||||
method="post"
|
||||
@@ -728,12 +728,12 @@ Purge Zombies
|
||||
>
|
||||
|
||||
<label>
|
||||
Keymap
|
||||
{{ T "config.keymap" }}
|
||||
</label>
|
||||
|
||||
<select name="editor_keymap">
|
||||
<option value="default" {{ if eq .EditorKeymap "default" }}selected{{ end }}>
|
||||
Default
|
||||
{{ T "config.keymap_default" }}
|
||||
</option>
|
||||
<option value="vim" {{ if eq .EditorKeymap "vim" }}selected{{ end }}>
|
||||
Vim
|
||||
@@ -749,7 +749,7 @@ Vim
|
||||
name="editor_syntax_highlight"
|
||||
{{ if .EditorSyntax }}checked{{ end }}
|
||||
>
|
||||
Syntax highlighting
|
||||
{{ T "config.syntax_highlight" }}
|
||||
</label>
|
||||
|
||||
<br>
|
||||
@@ -761,14 +761,14 @@ Syntax highlighting
|
||||
name="editor_autocomplete"
|
||||
{{ if .EditorAutocomplete }}checked{{ end }}
|
||||
>
|
||||
Autocomplete
|
||||
{{ T "config.autocomplete" }}
|
||||
</label>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<button type="submit">
|
||||
Save
|
||||
{{ T "config.save" }}
|
||||
</button>
|
||||
|
||||
</form>
|
||||
|
||||
Reference in new issue
Block a user