aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2021-02-16 16:48:56 -0700
committerJordan <me@jordan.im>2021-02-16 16:48:56 -0700
commitbaa10aeb413a5ac109e56db5fd7a8d62a4d5965f (patch)
treeb063d3df79882cb454329e6469088b00d382113f /templates/index.html
downloadcrane-baa10aeb413a5ac109e56db5fd7a8d62a4d5965f.tar.gz
crane-baa10aeb413a5ac109e56db5fd7a8d62a4d5965f.zip
initial commit
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..7de21f7
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,16 @@
+{{ template "layout.html" . }}
+{{ define "content" }}
+<table id='header'>
+</table>
+{{ $categoryCount := len .Papers }}
+{{ if gt $categoryCount 0 }}
+<table class='tabs'>
+ <td><a class='active' href='/admin/'>Manage</a></td>
+</table>
+<div class='content'>
+{{ block "list" . }}{{ end }}
+</div>
+{{ else }}
+<p>nothing here yet, <a style="text-decoration:underline;" href="/admin/">create a category</a> to start downloading papers</p>
+{{ end }}
+{{ end }}