2020-12-12 22:44:03 +00:00
|
|
|
{{ define "title" }}
|
2021-08-04 21:26:38 +00:00
|
|
|
<title>{{ string .Blog.Lang "editor" }} - {{ mdtitle .Blog.Title }}</title>
|
2020-12-12 22:44:03 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
|
|
|
<main>
|
|
|
|
<h1>{{ string .Blog.Lang "editor" }}</h1>
|
|
|
|
<h2>{{ string .Blog.Lang "create" }}</h2>
|
2021-08-01 17:27:21 +00:00
|
|
|
{{ md (editorpostdesc .BlogString) }}
|
2021-07-22 11:41:52 +00:00
|
|
|
<form class="fw p" method="post">
|
2020-12-12 22:44:03 +00:00
|
|
|
<input type="hidden" name="h" value="entry">
|
2021-07-31 12:19:37 +00:00
|
|
|
<textarea name="content" class="monospace h400p formcache" id="create-input">{{ editortemplate .BlogString }}</textarea>
|
2021-06-18 14:35:48 +00:00
|
|
|
<input type="submit" value="{{ string .Blog.Lang "create" }}">
|
2020-12-12 22:44:03 +00:00
|
|
|
</form>
|
2021-09-02 06:57:24 +00:00
|
|
|
{{ if .Data.UpdatePostURL }}
|
2021-05-08 12:09:42 +00:00
|
|
|
<h2 id="update">{{ string .Blog.Lang "update" }}</h2>
|
2021-07-22 11:41:52 +00:00
|
|
|
<form class="fw p" method="post" action="#update">
|
2021-09-02 06:57:24 +00:00
|
|
|
<input type="hidden" name="editoraction" value="updatepost">
|
|
|
|
<input type="hidden" name="url" value="{{ .Data.UpdatePostURL }}">
|
|
|
|
<textarea name="content" class="monospace h400p">{{ .Data.UpdatePostContent }}</textarea>
|
2021-06-18 14:35:48 +00:00
|
|
|
<input type="submit" value="{{ string .Blog.Lang "update" }}">
|
2020-12-12 22:44:03 +00:00
|
|
|
</form>
|
2021-09-02 06:57:24 +00:00
|
|
|
{{ end }}
|
2021-07-14 13:44:57 +00:00
|
|
|
<h2>{{ string .Blog.Lang "posts" }}</h2>
|
|
|
|
<p><a href="{{ .Blog.RelativePath "/editor/drafts" }}">{{ string .Blog.Lang "drafts" }}</a></p>
|
|
|
|
<p><a href="{{ .Blog.RelativePath "/editor/private" }}">{{ string .Blog.Lang "privateposts" }}</a></p>
|
|
|
|
<p><a href="{{ .Blog.RelativePath "/editor/unlisted" }}">{{ string .Blog.Lang "unlistedposts" }}</a></p>
|
2020-12-13 10:28:46 +00:00
|
|
|
<h2>{{ string .Blog.Lang "upload" }}</h2>
|
2021-07-22 11:41:52 +00:00
|
|
|
<form class="fw p" method="post" enctype="multipart/form-data">
|
2020-12-13 10:28:46 +00:00
|
|
|
<input type="hidden" name="editoraction" value="upload">
|
2021-06-28 20:17:18 +00:00
|
|
|
<input type="file" name="file">
|
2021-06-18 14:35:48 +00:00
|
|
|
<input type="submit" value="{{ string .Blog.Lang "upload" }}">
|
2020-12-13 10:28:46 +00:00
|
|
|
</form>
|
2021-06-28 20:17:18 +00:00
|
|
|
<p><a href="{{ .Blog.RelativePath "/editor/files" }}">{{ string .Blog.Lang "mediafiles" }}</a></p>
|
2021-06-18 14:35:48 +00:00
|
|
|
<h2>{{ string .Blog.Lang "location" }}</h2>
|
2021-07-22 11:41:52 +00:00
|
|
|
<form class="fw p">
|
2021-06-28 20:17:18 +00:00
|
|
|
<input id="geobtn" type="button" value="{{ string .Blog.Lang "locationget" }}" data-failed="{{ string .Blog.Lang "locationfailed" }}" data-notsupported="{{ string .Blog.Lang "locationnotsupported" }}">
|
2021-06-18 14:35:48 +00:00
|
|
|
<input id="geostatus" type="text" class="hide" readonly>
|
|
|
|
</form>
|
|
|
|
<script defer src="{{ asset "js/geohelper.js" }}"></script>
|
2021-06-07 18:27:28 +00:00
|
|
|
<script defer src="{{ asset "js/formcache.js" }}"></script>
|
2020-12-12 22:44:03 +00:00
|
|
|
</main>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "editor" }}
|
|
|
|
{{ template "base" . }}
|
|
|
|
{{ end }}
|