aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2021-01-23 08:44:05 +0000
committerr <r@freesoftwareextremist.com>2021-01-23 08:44:05 +0000
commitac342dde079a0ca156c36a402a3c0ba86d78821d (patch)
tree03d3daf98c5e14736e9ba66f1781df83ea4eed65 /templates
parenteca0366c21c94f7cbf6d1b701dd31be8ee81abc7 (diff)
downloadbloat-ac342dde079a0ca156c36a402a3c0ba86d78821d.tar.gz
bloat-ac342dde079a0ca156c36a402a3c0ba86d78821d.zip
Add remote timeline
Diffstat (limited to 'templates')
-rw-r--r--templates/nav.tmpl7
-rw-r--r--templates/root.tmpl2
-rw-r--r--templates/timeline.tmpl10
3 files changed, 15 insertions, 4 deletions
diff --git a/templates/nav.tmpl b/templates/nav.tmpl
index fdff885..98f0532 100644
--- a/templates/nav.tmpl
+++ b/templates/nav.tmpl
@@ -17,9 +17,9 @@
<a class="nav-link" href="/timeline/home" accesskey="1" title="Home timeline (1)">home</a>
<a class="nav-link" href="/timeline/direct" accesskey="2" title="Direct timeline (2)">direct</a>
<a class="nav-link" href="/timeline/local" accesskey="3" title="Local timeline (3)">local</a>
- <a class="nav-link" href="/timeline/twkn" accesskey="4" title="The Whole Known Netwwork (4)">twkn</a>
- <a class="nav-link" href="/search" accesskey="5" title="Search (5)">search</a>
- <a class="nav-link" href="/about" accesskey="6" title="About (6)">about</a>
+ <a class="nav-link" href="/timeline/remote" accesskey="4" title="Remote timeline (4)">remote</a>
+ <a class="nav-link" href="/timeline/twkn" accesskey="5" title="The Whole Known Netwwork (5)">twkn</a>
+ <a class="nav-link" href="/search" accesskey="6" title="Search (6)">search</a>
</div>
<div>
<a class="nav-link" href="/settings" target="_top" accesskey="7" title="Settings (7)">settings</a>
@@ -28,6 +28,7 @@
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
<input type="submit" value="signout" class="btn-link nav-link" accesskey="8" title="Signout (8)">
</form>
+ <a class="nav-link" href="/about" accesskey="9" title="About (9)">about</a>
</div>
</div>
</div>
diff --git a/templates/root.tmpl b/templates/root.tmpl
index ef25c90..b1305f5 100644
--- a/templates/root.tmpl
+++ b/templates/root.tmpl
@@ -6,7 +6,7 @@
<link rel="icon" type="image/png" href="/static/favicon.png">
<title>{{.Title}}</title>
</head>
-<frameset cols="420px,*">
+<frameset cols="424px,*">
<frameset rows="316px,*">
<frame name="nav" src="/nav">
<frame name="notification" src="/notifications">
diff --git a/templates/timeline.tmpl b/templates/timeline.tmpl
index eabb3ed..bde050a 100644
--- a/templates/timeline.tmpl
+++ b/templates/timeline.tmpl
@@ -2,6 +2,16 @@
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
<div class="page-title"> {{.Title}} </div>
+{{if eq .Type "remote"}}
+<form class="search-form" action="/timeline/remote" method="GET">
+ <span class="post-form-field">
+ <label for="instance"> Instance </label>
+ <input id="instance" name="instance" value="{{.Instance}}">
+ </span>
+ <button type="submit"> Submit </button>
+</form>
+{{end}}
+
{{range .Statuses}}
{{template "status.tmpl" (WithContext . $.Ctx)}}
{{end}}