aboutsummaryrefslogtreecommitdiff
path: root/ui/pages/post/get.tmpl.html
diff options
context:
space:
mode:
authorAlexander Kavon <me+git@alexkavon.com>2024-01-23 06:33:20 -0500
committerAlexander Kavon <me+git@alexkavon.com>2024-01-23 06:33:20 -0500
commit8d92bdf7da95e1085485c0e60b9dac19c246e235 (patch)
tree5c346f8bdb10b3b8084a3b9e95c727f7fa3914be /ui/pages/post/get.tmpl.html
parent8510c36ded85740885e67b59ee2ec2360986c0a9 (diff)
move ui templates into src, update conf to handle other paths, export User Insert Hooks
Diffstat (limited to 'ui/pages/post/get.tmpl.html')
-rw-r--r--ui/pages/post/get.tmpl.html26
1 files changed, 0 insertions, 26 deletions
diff --git a/ui/pages/post/get.tmpl.html b/ui/pages/post/get.tmpl.html
deleted file mode 100644
index b32bd1c..0000000
--- a/ui/pages/post/get.tmpl.html
+++ /dev/null
@@ -1,26 +0,0 @@
-{{define "title"}}{{.post.Title}}{{end}}
-
-{{define "main"}}
- <a class="title" href="{{.post.URL.String}}" target="_blank">{{.post.Title}}</a>
- <span class="post-tags">
- {{range $tag := .post.R.Tags}}
- <span class="post-tag-{{$tag.Tag}}">{{$tag.Tag}}</span>
- {{end}}
- </span>
- <span class="post-domain">{{.post.URL.String}} (Pretty URL)</span>
- <span class="post-author">by <a href="u/{{.post.R.User.ID}}">{{.post.R.User.Username}}</a></span>
- <span class="post-date">{{.post.CreatedAt.Format "Jan 02, 2006 15:04"}}</span>
- <span class="actions">
- <span class="action-flag">Flag</span>
- <span class="action-hide">Hide</span>
- </span>
- {{ if .post.Description.Valid }}
- <p>{{.post.Description.String}}</p>
- {{end}}
- <form action="/p/{{.post.ID}}/comment" method="POST">
- <textarea placeholder="This better be good." name="comment"></textarea>
- <button type="submit">Yup</button>
- <button class="preview" type="button">Preview</button>
- </form>
- {{template "comments" .}}
-{{end}}