comparison gpp/templates/downloads/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 27bee3ac85e6
children 88b2b9cb8c1f
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% extends 'base.html' %} 1 {% extends 'base.html' %}
2 {% load url from future %}
2 {% load downloads_tags %} 3 {% load downloads_tags %}
3 {% block title %}Downloads{% endblock %} 4 {% block title %}Downloads{% endblock %}
4 {% block custom_css %} 5 {% block custom_css %}
5 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/downloads.css" /> 6 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/downloads.css" />
6 {% endblock %} 7 {% endblock %}
11 {% if categories %} 12 {% if categories %}
12 <p>We have {{ total_dls }} download{{ total_dls|pluralize }} in {{ categories.count }} categories.</p> 13 <p>We have {{ total_dls }} download{{ total_dls|pluralize }} in {{ categories.count }} categories.</p>
13 <dl> 14 <dl>
14 {% for category in categories %} 15 {% for category in categories %}
15 <dt> 16 <dt>
16 <a href="{% url downloads-category slug=category.slug sort="title" %}">{{ category.title }}</a> 17 <a href="{% url 'downloads-category' slug=category.slug sort="title" %}">{{ category.title }}</a>
17 ({{ category.count }}) 18 ({{ category.count }})
18 </dt> 19 </dt>
19 <dd><p>{{ category.description }}</p></dd> 20 <dd><p>{{ category.description }}</p></dd>
20 {% endfor %} 21 {% endfor %}
21 </dl> 22 </dl>