From 61d4e959b5dfdb6c42b4ff6f83d86ccb24e36f3e Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Fri, 19 Aug 2022 21:57:05 -0600 Subject: [PATCH] improve navigation around admin pages --- srv/src/http/tpl/assets.html | 4 ++++ srv/src/http/tpl/draft-posts.html | 8 +++++--- srv/src/http/tpl/edit-post.html | 24 ++++++++++++------------ srv/src/http/tpl/posts.html | 4 ++++ 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" }} +

+ Back to Admin +

+

Assets

Upload Asset

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" }} +

+ Back to Admin +

+

Drafts

- - New Draft - + New Draft

{{ 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" }} +

+ {{ if .Payload.IsDraft }} + + Back to Drafts + + {{ else }} + + Back to Posts + + {{ end }} +

+
@@ -125,18 +137,6 @@ -

- {{ if .Payload.IsDraft }} - - Back to Drafts - - {{ else }} - - Back to Posts - - {{ end }} -

- {{ 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" }} +

+ Back to Admin +

+

Posts

{{ if ge .Payload.PrevPage 0 }}