fe426ded18d05037b44d7cdc9434b623c767cfe6
[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         <div class="post-content-container">
8                 <textarea id="post-content" name="content" class="post-content" cols="50" rows="5"></textarea>
9         </div>
10         <div class="post-attachment-div">
11                 Attachments <input id="post-file-picker" type="file" name="attachments" multiple>
12         </div>
13         <button type="submit"> Post </button>
14 </form>
15
16 {{range .Statuses}}
17 {{template "status.tmpl" .}}
18 {{end}}
19
20 <div class="pagination">
21         {{if .HasPrev}}
22                 <a href="{{.PrevLink}}">prev</a>
23         {{end}}
24         {{if .HasNext}}
25                 <a href="{{.NextLink}}">next</a>
26         {{end}}
27 </div>
28 {{template "footer.tmpl"}}