aboutsummaryrefslogtreecommitdiff
path: root/ui/pages/post/get.tmpl.html
blob: f705f6559859eeaca28bf5940005a4f1597bb524 (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}}</span>
    <span class="actions">
        <span class="action-flag">Flag</span>
        <span class="action-hide">Hide</span>
    </span>
    {{ if and .Description not .Url }}
    <p>{{.Description}}</p>
    {{end}}
    <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}}