comparison gpp/templates/downloads/download_list.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: {{ category.title }}{% endblock %} 4 {% block title %}Downloads: {{ category.title }}{% 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 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/tab-nav.css" /> 7 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/tab-nav.css" />
14 {% include 'downloads/navigation.html' %} 15 {% include 'downloads/navigation.html' %}
15 <h3>Category: {{ category.title }}</h3> 16 <h3>Category: {{ category.title }}</h3>
16 17
17 {% if page.object_list %} 18 {% if page.object_list %}
18 <ul class="tab-nav"> 19 <ul class="tab-nav">
19 <li><a href="{% url downloads-category slug=category.slug sort="title" %}" 20 <li><a href="{% url 'downloads-category' slug=category.slug sort="title" %}"
20 {% ifequal s "title" %}class="active" {% endifequal %}>Title</a></li> 21 {% ifequal s "title" %}class="active" {% endifequal %}>Title</a></li>
21 <li><a href="{% url downloads-category slug=category.slug sort="date" %}" 22 <li><a href="{% url 'downloads-category' slug=category.slug sort="date" %}"
22 {% ifequal s "date" %}class="active"{% endifequal %}>Date</a></li> 23 {% ifequal s "date" %}class="active"{% endifequal %}>Date</a></li>
23 <li><a href="{% url downloads-category slug=category.slug sort="rating" %}" 24 <li><a href="{% url 'downloads-category' slug=category.slug sort="rating" %}"
24 {% ifequal s "rating" %}class="active"{% endifequal %}>Rating</a></li> 25 {% ifequal s "rating" %}class="active"{% endifequal %}>Rating</a></li>
25 <li><a href="{% url downloads-category slug=category.slug sort="hits" %}" 26 <li><a href="{% url 'downloads-category' slug=category.slug sort="hits" %}"
26 {% ifequal s "hits" %}class="active"{% endifequal %}>Hits</a></li> 27 {% ifequal s "hits" %}class="active"{% endifequal %}>Hits</a></li>
27 </ul> 28 </ul>
28 29
29 {% include 'core/pagination.html' %} 30 {% include 'core/pagination.html' %}
30 31