53e3ad7f9db542fd295a01306d36ab75b6e1f4b4
[bloat] / templates / timeline.tmpl
1 {{template "header.tmpl"}}
2 {{template "navigation.tmpl" .NavbarData}}
3 <div class="page-title"> Timeline </div>
4
5 <form class="timeline-post-form" action="/post" method="POST" enctype="multipart/form-data">
6         <label for="post-content"> New Post </label>
7         <br/>
8         <textarea id="post-content" name="content" class="post-content" cols="50" rows="5"></textarea>
9         <br/>
10         Attachments <input id="post-file-picker" type="file" name="attachments" multiple>
11         <br/>
12         <button type="submit"> Post </button>
13 </form>
14
15 {{range .Statuses}}
16 {{template "status.tmpl" .}}
17 {{end}}
18
19 <div class="pagination">
20         {{if .HasPrev}}
21                 <a href="{{.PrevLink}}">prev</a>
22         {{end}}
23         {{if .HasNext}}
24                 <a href="{{.NextLink}}">next</a>
25         {{end}}
26 </div>
27 {{template "footer.tmpl"}}