summaryrefslogtreecommitdiff
path: root/templates/themes/categories/sidebar.html
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-03-03 23:41:14 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-03-03 23:41:14 +1100
commitbbe8660244900ced28b260cd8281d87891b796a3 (patch)
treef58c4913ff4bed53f47167b64f0592c86a209fea /templates/themes/categories/sidebar.html
parentd446ba94b967939eb328d11ce0fd508fa66e3ff9 (diff)
the categories theme was using the frameset theme's templates...
Diffstat (limited to 'templates/themes/categories/sidebar.html')
-rw-r--r--templates/themes/categories/sidebar.html29
1 files changed, 21 insertions, 8 deletions
diff --git a/templates/themes/categories/sidebar.html b/templates/themes/categories/sidebar.html
index 171e4e93..5ae6ab38 100644
--- a/templates/themes/categories/sidebar.html
+++ b/templates/themes/categories/sidebar.html
@@ -23,18 +23,31 @@
</ul>
</fieldset>
- <fieldset>
- <legend>Boards</legend>
- <ul>
+ {% for category, boards in categories %}
+ <fieldset>
+ <legend>
+ {{ category }}
+ </legend>
{% for board in boards %}
<li>
- <a href="{{ config.board_path|sprintf(board.uri) }}">
- {{ board.title }}
- </a>
+ <a href="{{ board.uri }}">{{ board.title }}</a>
</li>
{% endfor %}
- </ul>
- </fieldset>
+ </fieldset>
+ {% endfor %}
+
+ {% for category, links in config.custom_categories %}
+ <fieldset>
+ <legend>
+ {{ category }}
+ </legend>
+ {% for title, uri in links %}
+ <li>
+ <a href="{{ uri }}">{{ title }}</a>
+ </li>
+ {% endfor %}
+ </fieldset>
+ {% endfor %}
</body>
</html>
{% endfilter %}