diff options
| author | Alexander Kavon <me+git@alexkavon.com> | 2024-01-22 21:59:17 -0500 |
|---|---|---|
| committer | Alexander Kavon <me+git@alexkavon.com> | 2024-01-22 21:59:17 -0500 |
| commit | 0baaa2eaa759662363533b812ef5dd7cc25885e3 (patch) | |
| tree | 908db0eeb1a835bdc7e465223e0d3beed7992a91 /ui/pages/post | |
| parent | 0cdc7a2e84ac5c460569a26a1dd8e3070cea487e (diff) | |
ui post/get and ui comments templates
Diffstat (limited to 'ui/pages/post')
| -rw-r--r-- | ui/pages/post/get.tmpl.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ui/pages/post/get.tmpl.html b/ui/pages/post/get.tmpl.html new file mode 100644 index 0000000..1489f36 --- /dev/null +++ b/ui/pages/post/get.tmpl.html @@ -0,0 +1,22 @@ +{{define "title"}}{{.Title}}{{end}} + +{{define "main"}} + <a class="title" href="{{.Url}}" target="_blank">{{.Title}}</a> + <span class="post-tags">{{.Tags}}</span> + <span class="post-domain">{{.UrlDomainName}}</span> + <span class="post-author">by <a href="u/{{.Username}}">{{.Username}}</a></span> + <span class="post-date">{{.CreatedAt | relative}}</span> + <span class="actions"> + <span class="action-flag">Flag</span> + <span class="action-hide">Hide</span> + </span> + {{ if .Description && !.Url }} + <p>{{.Description}}</p> + {{endif}} + <form action="/p/{{.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}} |
