summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html1
-rw-r--r--templates/index.html6
2 files changed, 6 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html
index d6e67b9..a156f3b 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -15,7 +15,6 @@
<body>
<nav>
<a href="/">Tube</a>
- <a href="/?trending=1">Trending</a>
<a class="centered" style="text-indent: 0;" href="/upload">Upload</a>
</nav>
<main>
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">