diff static/tpl/read-page.html @ 99:58a1a7baca25

Added preliminary UI support for categories.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 21 Apr 2013 08:12:18 -0700
parents b03f083c3a29
children 827e236aa7c6
line wrap: on
line diff
--- a/static/tpl/read-page.html	Sun Apr 21 08:11:14 2013 -0700
+++ b/static/tpl/read-page.html	Sun Apr 21 08:12:18 2013 -0700
@@ -16,7 +16,8 @@
     {{#if meta.category}}
     <footer>
         {{#each meta.category}}
-        <span><a href="/#/special/category/">{{.}}</a></span>
+        {{#ifeq @index to=0}}Categories: {{else}} | {{/ifeq}}
+        <span><a href="/#/category/{{url}}">{{name}}</a></span>
         {{/each}}
     </footer>
     {{/if}}