diff options
Diffstat (limited to 'ui/pages/post/get.tmpl.html')
| -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}} |
