aboutsummaryrefslogtreecommitdiff
path: root/templates/timeline.tmpl
blob: 53e3ad7f9db542fd295a01306d36ab75b6e1f4b4 (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
{{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>
	<br/>
	<textarea id="post-content" name="content" class="post-content" cols="50" rows="5"></textarea>
	<br/>
	Attachments <input id="post-file-picker" type="file" name="attachments" multiple>
	<br/>
	<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"}}