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/draft-posts.html | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 srv/src/http/tpl/draft-posts.html (limited to 'srv/src/http/tpl/draft-posts.html') diff --git a/srv/src/http/tpl/draft-posts.html b/srv/src/http/tpl/draft-posts.html new file mode 100644 index 0000000..f89fac5 --- /dev/null +++ b/srv/src/http/tpl/draft-posts.html @@ -0,0 +1,48 @@ +{{ define "body" }} + +

Drafts

+ +

+ + New Draft + +

+ + {{ if ge .Payload.PrevPage 0 }} +

+ < < Previous Page +

+ {{ end }} + + + + {{ range .Payload.Posts }} + + + + + + {{ end }} + +
{{ .Title }} + + Edit + + +
+ +
+
+ + {{ if ge .Payload.NextPage 0 }} +

+ Next Page > > +

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