aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
blob: 294ecea0642d4d4398e2778aea8b2c5c03ebb9cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{ template "layout.html" . }}
{{ define "content" }}
<table id='header'>
</table>
{{ $categoryCount := len .Papers.List }}
{{ if gt $categoryCount 0 }}
<div class="cat">
  <span>{{ range $category, $paper := .Papers.List }}[<a href="#{{ $category }}">{{ $category }}</a>] {{ end }}</span>
</div>
<table class='tabs'>
  <tr>
    <td><a class='active' href='/admin/'>Manage</a></td>
  </tr>
</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 }}