diff options
author | Jordan <me@jordan.im> | 2022-01-01 19:43:19 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2022-01-01 19:43:19 -0700 |
commit | 4f1178fc2a3e5865c2fb1c16c83fc1abb15484f9 (patch) | |
tree | ecec1f79a373cb2331de9b8011177ae2db9d039b /templates/index.html | |
parent | 8401a6bdeec321920550f813a1c7843ed6e66a44 (diff) | |
download | crane-4f1178fc2a3e5865c2fb1c16c83fc1abb15484f9.tar.gz crane-4f1178fc2a3e5865c2fb1c16c83fc1abb15484f9.zip |
crane, http, util: housekeeping, performance improvements, styling
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/templates/index.html b/templates/index.html index d435a38..861410d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,21 +1,22 @@ {{ template "layout.html" . }} {{ define "content" }} -<table id='header'> -</table> + +<div class="content"> {{ $categoryCount := len .Papers.List }} {{ if gt $categoryCount 0 }} -<div class="cat"> - <span>{{ range $category, $paper := .Papers.List }}<span class="nowrap">[<a href="#{{ $category }}">{{ $category }}</a>]</span> {{ end }}</span> +<div class="cat-cont"> + <div class="cat"> + {{ range $category, $paper := .Papers.List }} + <span class="cat">[<a href="#{{ $category }}">{{ $category }}</a>]</span> + {{ end }} + </div> </div> -<table class='tabs'> - <tr> - <td><a class='active' href='/admin/'>Manage</a></td> - </tr> -</table> -<div class="content"> +<p class="Pp"><a class='active' href='/admin/'>Manage</a></p> {{ 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> +<p>nothing here yet, +<a style="text-decoration:underline;" href="/admin/">create a category</a> +to start downloading papers</p> {{ end }} {{ end }} |