diff options
Diffstat (limited to 'templates/timeline.tmpl')
-rw-r--r-- | templates/timeline.tmpl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/timeline.tmpl b/templates/timeline.tmpl new file mode 100644 index 0000000..b9ee3a5 --- /dev/null +++ b/templates/timeline.tmpl @@ -0,0 +1,22 @@ +{{template "header.tmpl"}} +<h1> TIMELINE </h1> + +<form class="timeline-post-form" action="/post" method="POST"> + <label for="post-content"> New Post </label> + <br/> + <textarea id="post-content" name="content" class="post-content" cols="50" rows="5"></textarea> + <br/> + <button type="submit"> Post </button> +</form> + +{{range .Statuses}} +{{template "status.tmpl" .}} +{{end}} + +{{if .HasNext}} + <a href="{{.NextLink}}"> next </a> +{{end}} +{{if .HasPrev}} + <a href="{{.PrevLink}}"> next </a> +{{end}} +{{template "footer.tmpl"}} |