comparison gpp/templates/weblinks/index.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents 7e8d2dda99e3
children
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% extends 'weblinks/base.html' %} 1 {% extends 'weblinks/base.html' %}
2 {% load url from future %}
2 {% block title %}Web Links{% endblock %} 3 {% block title %}Web Links{% endblock %}
3 {% block weblinks_content %} 4 {% block weblinks_content %}
4 <h3>Categories</h3> 5 <h3>Categories</h3>
5 {% if categories %} 6 {% if categories %}
6 <p>We have {{ total_links }} links in {{ categories.count }} categories.</p> 7 <p>We have {{ total_links }} links in {{ categories.count }} categories.</p>
7 <dl> 8 <dl>
8 {% for category in categories %} 9 {% for category in categories %}
9 <dt><a href="{% url weblinks-view_links slug=category.slug sort="title" %}">{{ category.title }}</a> 10 <dt><a href="{% url 'weblinks-view_links' slug=category.slug sort="title" %}">{{ category.title }}</a>
10 ({{ category.count }})</dt> 11 ({{ category.count }})</dt>
11 <dd><p>{{ category.description }}</p></dd> 12 <dd><p>{{ category.description }}</p></dd>
12 {% endfor %} 13 {% endfor %}
13 </dl> 14 </dl>
14 {% endif %} 15 {% endif %}