aboutsummaryrefslogtreecommitdiff
path: root/templates/timeline.tmpl
blob: fe426ded18d05037b44d7cdc9434b623c767cfe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{{template "header.tmpl"}}
{{template "navigation.tmpl" .NavbarData}}
<div class="page-title"> Timeline </div>

<form class="timeline-post-form" action="/post" method="POST" enctype="multipart/form-data">
	<label for="post-content"> New Post </label>
	<div class="post-content-container">
		<textarea id="post-content" name="content" class="post-content" cols="50" rows="5"></textarea>
	</div>
	<div class="post-attachment-div">
		Attachments <input id="post-file-picker" type="file" name="attachments" multiple>
	</div>
	<button type="submit"> Post </button>
</form>

{{range .Statuses}}
{{template "status.tmpl" .}}
{{end}}

<div class="pagination">
	{{if .HasPrev}}
		<a href="{{.PrevLink}}">prev</a>
	{{end}}
	{{if .HasNext}}
		<a href="{{.NextLink}}">next</a>
	{{end}}
</div>
{{template "footer.tmpl"}}