comparison gpp/templates/downloads/index.html @ 241:27bee3ac85e6

For #93: fix url scheme for downloads.
author Brian Neal <bgneal@gmail.com>
date Wed, 15 Sep 2010 01:01:40 +0000
parents 2baadae33f2e
children daa2916f5b34
comparison
equal deleted inserted replaced
240:1246a4f1ab4f 241:27bee3ac85e6
4 {% block custom_css %} 4 {% block custom_css %}
5 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/downloads.css" /> 5 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/downloads.css" />
6 {% endblock %} 6 {% endblock %}
7 {% block content %} 7 {% block content %}
8 <h2>Downloads</h2> 8 <h2>Downloads</h2>
9 {% downloads_navigation %} 9 {% include 'downloads/navigation.html' %}
10 <h3>Categories</h3> 10 <h3>Categories</h3>
11 {% if categories %} 11 {% if categories %}
12 <p>We have {{ total_dls }} download{{ total_dls|pluralize }} in {{ categories.count }} categories.</p> 12 <p>We have {{ total_dls }} download{{ total_dls|pluralize }} in {{ categories.count }} categories.</p>
13 <dl> 13 <dl>
14 {% for category in categories %} 14 {% for category in categories %}
15 <dt> 15 <dt>
16 <a href="{% url downloads-category category=category.pk sort="title" page=1 %}">{{ category.title }}</a> 16 <a href="{% url downloads-category slug=category.slug sort="title" %}">{{ category.title }}</a>
17 ({{ category.count }}) 17 ({{ category.count }})
18 </dt> 18 </dt>
19 <dd><p>{{ category.description }}</p></dd> 19 <dd><p>{{ category.description }}</p></dd>
20 {% endfor %} 20 {% endfor %}
21 </dl> 21 </dl>