diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2022-08-19 21:57:05 -0600 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2022-08-19 21:57:05 -0600 |
commit | 61d4e959b5dfdb6c42b4ff6f83d86ccb24e36f3e (patch) | |
tree | 38b50079ad5f0a0a9bfc11379d0aa6c45aa1da4e /srv/src/http/tpl/edit-post.html | |
parent | f365b0975778984281b69d66150ee2d026e2613b (diff) |
improve navigation around admin pages
Diffstat (limited to 'srv/src/http/tpl/edit-post.html')
-rw-r--r-- | srv/src/http/tpl/edit-post.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/srv/src/http/tpl/edit-post.html b/srv/src/http/tpl/edit-post.html index ea07680..f8e2730 100644 --- a/srv/src/http/tpl/edit-post.html +++ b/srv/src/http/tpl/edit-post.html @@ -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" . }} |