diff options
author | Jordan <me@jordan.im> | 2021-03-14 13:43:03 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2021-03-14 13:43:03 -0700 |
commit | f03d77f73be72a934a99541b30a9663cc99a1733 (patch) | |
tree | 5065869c40492ebb917e825b6bcf0075b5117a17 /templates/admin.html | |
parent | c0271039935407c232270cef74cd2f559f77a64e (diff) | |
download | crane-f03d77f73be72a934a99541b30a9663cc99a1733.tar.gz crane-f03d77f73be72a934a99541b30a9663cc99a1733.zip |
r/w map locks; concurrent safety
Diffstat (limited to 'templates/admin.html')
-rw-r--r-- | templates/admin.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/admin.html b/templates/admin.html index 22b0e0a..05cf04f 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -14,7 +14,7 @@ </form> </td> </tr> - {{ $categoryCount := len .Papers }} + {{ $categoryCount := len .Papers.List }} {{ if gt $categoryCount 0 }} <tr> <td class='inpt'> @@ -25,7 +25,7 @@ {{ if $lastUsedCategory }} <option value="{{ .LastUsedCategory }}">{{ $lastUsedCategory }}</option> {{ end }} - {{ range $category, $papers := .Papers }} + {{ range $category, $papers := .Papers.List }} {{ if ne $category $lastUsedCategory }} <option value="{{ $category }}">{{ $category }}</option> {{ end }} @@ -39,7 +39,7 @@ </table> {{ if gt $categoryCount 0 }} <div class="cat"> - <span>{{ range $category, $paper := .Papers }}[<a href="#{{ $category }}">{{ $category }}</a>] {{ end }}</span> + <span>{{ range $category, $paper := .Papers.List }}[<a href="#{{ $category }}">{{ $category }}</a>] {{ end }}</span> </div> <table class='tabs'> <tr> |