From f329e7f2095a57967bfe86563401236d53a15924 Mon Sep 17 00:00:00 2001 From: Alexander Kavon Date: Mon, 22 Jan 2024 22:09:39 -0500 Subject: ui post/get and ui comments templates, more base templating --- ui/pages/post/get.tmpl.html | 6 +++--- ui/templates/comments.tmpl.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/pages/post/get.tmpl.html b/ui/pages/post/get.tmpl.html index 1489f36..f705f65 100644 --- a/ui/pages/post/get.tmpl.html +++ b/ui/pages/post/get.tmpl.html @@ -5,14 +5,14 @@ {{.Tags}} {{.UrlDomainName}} by {{.Username}} - {{.CreatedAt | relative}} + {{.CreatedAt}} Flag Hide - {{ if .Description && !.Url }} + {{ if and .Description not .Url }}

{{.Description}}

- {{endif}} + {{end}}
diff --git a/ui/templates/comments.tmpl.html b/ui/templates/comments.tmpl.html index 560e918..b069bbd 100644 --- a/ui/templates/comments.tmpl.html +++ b/ui/templates/comments.tmpl.html @@ -2,7 +2,7 @@
{{range $comment := .comments }} by {{$comment.username}} - {{$comment.created_at | relative_time}} + {{$comment.created_at}} Flag Hide -- cgit v1.2.3