aboutsummaryrefslogtreecommitdiff
path: root/templates/timeline.tmpl
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-13 18:08:26 +0000
committerr <r@freesoftwareextremist.com>2019-12-13 18:26:24 +0000
commit5e4da01c3ae3ae2e870faba9085d9d9213c01c29 (patch)
tree39d6f1e76b901549f194ddbac3c6cb82e0abd019 /templates/timeline.tmpl
downloadbloat-5e4da01c3ae3ae2e870faba9085d9d9213c01c29.tar.gz
bloat-5e4da01c3ae3ae2e870faba9085d9d9213c01c29.zip
Initial commit
Diffstat (limited to 'templates/timeline.tmpl')
-rw-r--r--templates/timeline.tmpl22
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"}}