aboutsummaryrefslogtreecommitdiff
path: root/templates/admin.html
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2021-03-04 21:48:18 -0700
committerJordan <me@jordan.im>2021-03-04 21:48:18 -0700
commita164fd4aad6406900de2bc443e31e580b46550fc (patch)
treebd317d7daaa493de9d9c609cd2895d62c65eab68 /templates/admin.html
parentd70a3b022e59dfc484d350335ca25eb02998b8eb (diff)
downloadcrane-a164fd4aad6406900de2bc443e31e580b46550fc.tar.gz
crane-a164fd4aad6406900de2bc443e31e580b46550fc.zip
add category links, styling
Diffstat (limited to 'templates/admin.html')
-rw-r--r--templates/admin.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/admin.html b/templates/admin.html
index 8c5222c..697b391 100644
--- a/templates/admin.html
+++ b/templates/admin.html
@@ -38,6 +38,9 @@
{{ end }}
</table>
{{ if gt $categoryCount 0 }}
+<div class="cat">
+ <span>{{ range $category, $paper := .Papers }}[<a href="#{{ $category }}">{{ $category }}</a>] {{ end }}</span>
+</div>
<table class='tabs'>
<tr>
<td><a class='active' href='/admin/edit/'>Edit</a></td>