summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-08-19 21:57:05 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-08-19 21:57:05 -0600
commit61d4e959b5dfdb6c42b4ff6f83d86ccb24e36f3e (patch)
tree38b50079ad5f0a0a9bfc11379d0aa6c45aa1da4e
parentf365b0975778984281b69d66150ee2d026e2613b (diff)
improve navigation around admin pages
-rw-r--r--srv/src/http/tpl/assets.html4
-rw-r--r--srv/src/http/tpl/draft-posts.html8
-rw-r--r--srv/src/http/tpl/edit-post.html24
-rw-r--r--srv/src/http/tpl/posts.html4
4 files changed, 25 insertions, 15 deletions
diff --git a/srv/src/http/tpl/assets.html b/srv/src/http/tpl/assets.html
index b439135..f21717a 100644
--- a/srv/src/http/tpl/assets.html
+++ b/srv/src/http/tpl/assets.html
@@ -1,5 +1,9 @@
{{ define "body" }}
+<p>
+ <a href="{{ BlogURL "admin" }}">Back to Admin</a>
+</p>
+
<h1>Assets</h1>
<h2>Upload Asset</h2>
diff --git a/srv/src/http/tpl/draft-posts.html b/srv/src/http/tpl/draft-posts.html
index f89fac5..53261b9 100644
--- a/srv/src/http/tpl/draft-posts.html
+++ b/srv/src/http/tpl/draft-posts.html
@@ -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 }}
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" . }}
diff --git a/srv/src/http/tpl/posts.html b/srv/src/http/tpl/posts.html
index 5f75168..fbeaa41 100644
--- a/srv/src/http/tpl/posts.html
+++ b/srv/src/http/tpl/posts.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 }}