From c3135306b32e3ee18c3c412fbb2ea81b455201d5 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Thu, 18 Aug 2022 23:07:09 -0600 Subject: drafts functionality added, needs a publish button still --- srv/src/http/tpl/edit-post.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'srv/src/http/tpl/edit-post.html') diff --git a/srv/src/http/tpl/edit-post.html b/srv/src/http/tpl/edit-post.html index a585b82..ea1f2c1 100644 --- a/srv/src/http/tpl/edit-post.html +++ b/srv/src/http/tpl/edit-post.html @@ -15,6 +15,9 @@ type="text" placeholder="e.g. how-to-fly-a-kite" value="{{ .Payload.Post.ID }}" /> + {{ else if .Payload.IsDraft }} + {{ .Payload.Post.ID }} + {{ else }} {{ .Payload.Post.ID }} @@ -107,10 +110,17 @@

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

+ {{ end }} {{ template "base.html" . }} -- cgit v1.2.3