improve navigation around admin pages

main
Brian Picciano 2 years ago
parent f365b09757
commit 61d4e959b5
  1. 4
      srv/src/http/tpl/assets.html
  2. 8
      srv/src/http/tpl/draft-posts.html
  3. 24
      srv/src/http/tpl/edit-post.html
  4. 4
      srv/src/http/tpl/posts.html

@ -1,5 +1,9 @@
{{ define "body" }}
<p>
<a href="{{ BlogURL "admin" }}">Back to Admin</a>
</p>
<h1>Assets</h1>
<h2>Upload Asset</h2>

@ -1,11 +1,13 @@
{{ define "body" }}
<p>
<a href="{{ BlogURL "admin" }}">Back to Admin</a>
</p>
<h1>Drafts</h1>
<p>
<a href="{{ BlogURL "drafts/" }}?edit">
New Draft
</a>
<a href="{{ BlogURL "drafts/" }}?edit">New Draft</a>
</p>
{{ if ge .Payload.PrevPage 0 }}

@ -1,5 +1,17 @@
{{ define "body" }}
<p>
{{ if .Payload.IsDraft }}
<a href="{{ BlogURL "drafts/" }}">
Back to Drafts
</a>
{{ else }}
<a href="{{ BlogURL "posts/" }}">
Back to Posts
</a>
{{ end }}
</p>
<form method="POST" action="{{ BlogURL "posts/" }}">
<table>
@ -125,18 +137,6 @@
</form>
<p>
{{ if .Payload.IsDraft }}
<a href="{{ BlogURL "drafts/" }}">
Back to Drafts
</a>
{{ else }}
<a href="{{ BlogURL "posts/" }}">
Back to Posts
</a>
{{ end }}
</p>
{{ end }}
{{ template "base.html" . }}

@ -1,5 +1,9 @@
{{ define "body" }}
<p>
<a href="{{ BlogURL "admin" }}">Back to Admin</a>
</p>
<h1>Posts</h1>
{{ if ge .Payload.PrevPage 0 }}

Loading…
Cancel
Save