From 75044eef0331bb9448da813288aafc6735ce7c22 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Fri, 20 May 2022 10:13:46 -0600 Subject: Implement edit post page --- srv/src/api/tpl/edit-post.html | 82 ++++++++++++++++++++++++++++++++++++++++++ srv/src/api/tpl/index.html | 4 +-- srv/src/api/tpl/post.html | 4 +-- srv/src/api/tpl/posts.html | 2 +- 4 files changed, 87 insertions(+), 5 deletions(-) create mode 100644 srv/src/api/tpl/edit-post.html (limited to 'srv/src/api/tpl') diff --git a/srv/src/api/tpl/edit-post.html b/srv/src/api/tpl/edit-post.html new file mode 100644 index 0000000..9e30d4d --- /dev/null +++ b/srv/src/api/tpl/edit-post.html @@ -0,0 +1,82 @@ +{{ define "body" }} + +
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+ +
+ + +
+ +
+ + +
+ +
+ +
+
+ +
+
+ + + +
+ +{{ end }} + +{{ template "base.html" . }} diff --git a/srv/src/api/tpl/index.html b/srv/src/api/tpl/index.html index 946a3e4..e27cbef 100644 --- a/srv/src/api/tpl/index.html +++ b/srv/src/api/tpl/index.html @@ -7,9 +7,9 @@

{{ .Title }}

- {{ .PublishedAt.Format "2006-01-02" }} + {{ DateTimeFormat .PublishedAt }} {{ if not .LastUpdatedAt.IsZero }} - (Updated {{ .LastUpdatedAt.Format "2006-01-02" }}) + (Updated {{ DateTimeFormat .LastUpdatedAt }}) {{ end }}

{{ .Description }}

diff --git a/srv/src/api/tpl/post.html b/srv/src/api/tpl/post.html index fadab3c..474d7c2 100644 --- a/srv/src/api/tpl/post.html +++ b/srv/src/api/tpl/post.html @@ -5,10 +5,10 @@ {{ .Payload.Title }}
- {{ .Payload.PublishedAt.Format "2006-01-02" }} + {{ DateTimeFormat .Payload.PublishedAt }}  •  {{ if not .Payload.LastUpdatedAt.IsZero }} - (Updated {{ .Payload.LastUpdatedAt.Format "2006-01-02" }}) + (Updated {{ DateTimeFormat .Payload.LastUpdatedAt }})  •  {{ end }} {{ .Payload.Description }} diff --git a/srv/src/api/tpl/posts.html b/srv/src/api/tpl/posts.html index e701f59..714cf07 100644 --- a/srv/src/api/tpl/posts.html +++ b/srv/src/api/tpl/posts.html @@ -22,7 +22,7 @@

- +

-- cgit v1.2.3