diff options
Diffstat (limited to 'templates/admin-edit.html')
-rw-r--r-- | templates/admin-edit.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/admin-edit.html b/templates/admin-edit.html index 57a9aaa..7b30294 100644 --- a/templates/admin-edit.html +++ b/templates/admin-edit.html @@ -3,13 +3,13 @@ <p>{{ .Status }}</p> <table id='header'> <tr> - {{ $categoryCount := len .Papers }} + {{ $categoryCount := len .Papers.List }} {{ if gt $categoryCount 0 }} <td class='inpt'> <form method='post' action='/admin/edit/'> <input type="text" id="rename-category" name="rename-to" placeholder="Mathematics"> <select class="sel" name="rename-category" id="category"> - {{ range $category, $papers := .Papers }} + {{ range $category, $papers := .Papers.List }} <option value="{{ $category }}">{{ $category }}</option> {{ end }} </select> @@ -20,7 +20,7 @@ </tr> </table> <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> @@ -36,7 +36,7 @@ <option value="delete">Delete</option> </optgroup> <optgroup label="Move To"> - {{ range $category, $papers := .Papers }} + {{ range $category, $papers := .Papers.List }} <option value="move-{{ $category }}">{{ $category }}</option> {{ end }} </optgroup> @@ -44,7 +44,7 @@ <input class="btn" type="submit" value="Save" /> </div> <div class='papers nowrap list'> -{{ range $category, $papers := .Papers }} +{{ range $category, $papers := .Papers.List }} {{ $paperCount := len $papers }} <div class="papersection"> <input type="checkbox" id="{{ $category }}" name="category" value="{{ $category }}"> |