Mercurial > public > sg101
comparison gpp/templates/weblinks/index.html @ 242:7e8d2dda99e3
For #93: fix url scheme for weblinks.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 15 Sep 2010 03:24:01 +0000 |
parents | 2baadae33f2e |
children | daa2916f5b34 |
comparison
equal
deleted
inserted
replaced
241:27bee3ac85e6 | 242:7e8d2dda99e3 |
---|---|
4 <h3>Categories</h3> | 4 <h3>Categories</h3> |
5 {% if categories %} | 5 {% if categories %} |
6 <p>We have {{ total_links }} links in {{ categories.count }} categories.</p> | 6 <p>We have {{ total_links }} links in {{ categories.count }} categories.</p> |
7 <dl> | 7 <dl> |
8 {% for category in categories %} | 8 {% for category in categories %} |
9 <dt><a href="{% url weblinks-view_links category=category.id sort="title" page=1 %}">{{ category.title }}</a> | 9 <dt><a href="{% url weblinks-view_links slug=category.slug sort="title" %}">{{ category.title }}</a> |
10 ({{ category.count }})</dt> | 10 ({{ category.count }})</dt> |
11 <dd><p>{{ category.description }}</p></dd> | 11 <dd><p>{{ category.description }}</p></dd> |
12 {% endfor %} | 12 {% endfor %} |
13 </dl> | 13 </dl> |
14 {% endif %} | 14 {% endif %} |