aboutsummaryrefslogtreecommitdiff
path: root/ui/pages/post/get.tmpl.html
blob: 1489f365646c6f66fab814c6ebf8bdfccc55cf60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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}}