summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2020-03-25 23:02:04 +1000
committerJames Mills <prologic@shortcircuit.net.au>2020-03-25 23:02:14 +1000
commitbcd79ba2c55de3202f1e9b4b9b6070b36cfdb7db (patch)
tree13e63cbea825dcb941ed801d05aa524dcf5684ce /templates/index.html
parentaf07f1aaa96184f4ac74762cb9668ad06da0796f (diff)
Refactor UX of Trending vs. Recent video sorting
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
index ede6aa7..32ed16b 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -11,6 +11,12 @@
{{ end }}
</div>
<div id="playlist">
+ <div class="nav">
+ <ul>
+ <li><a {{ if eq $.Sort "views" }}class="active"{{ end }}href="?sort=views">Trending</a></li>
+ <li><a {{ if eq $.Sort "timestamp" }}class="active"{{ end }}href="?sort=timestamp">Recent</a></li>
+ </ul>
+ </div>
{{ range $m := .Playlist }}
{{ if eq $m.ID $playing.ID }}
<a href="/v/{{ $m.ID }}" class="playing">