2019-12-13 18:08:26 +00:00
|
|
|
{{template "header.tmpl"}}
|
2019-12-15 17:37:58 +00:00
|
|
|
{{template "navigation.tmpl" .NavbarData}}
|
2019-12-13 20:04:28 +00:00
|
|
|
<div class="page-title"> Timeline </div>
|
2019-12-13 18:08:26 +00:00
|
|
|
|
2019-12-14 20:19:02 +00:00
|
|
|
<form class="timeline-post-form" action="/post" method="POST" enctype="multipart/form-data">
|
2019-12-13 18:08:26 +00:00
|
|
|
<label for="post-content"> New Post </label>
|
2019-12-19 16:19:44 +00:00
|
|
|
<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>
|
2019-12-13 18:08:26 +00:00
|
|
|
<button type="submit"> Post </button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{{range .Statuses}}
|
|
|
|
{{template "status.tmpl" .}}
|
|
|
|
{{end}}
|
|
|
|
|
2019-12-15 06:55:13 +00:00
|
|
|
<div class="pagination">
|
|
|
|
{{if .HasPrev}}
|
|
|
|
<a href="{{.PrevLink}}">prev</a>
|
|
|
|
{{end}}
|
|
|
|
{{if .HasNext}}
|
|
|
|
<a href="{{.NextLink}}">next</a>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2019-12-13 18:08:26 +00:00
|
|
|
{{template "footer.tmpl"}}
|