Mercurial > public > sg101
comparison gpp/templates/downloads/download_list.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 |
---|---|
9 {% block custom_js %} | 9 {% block custom_js %} |
10 <script type="text/javascript" src="{{ MEDIA_URL }}js/downloads/rating.js"></script> | 10 <script type="text/javascript" src="{{ MEDIA_URL }}js/downloads/rating.js"></script> |
11 {% endblock %} | 11 {% endblock %} |
12 {% block content %} | 12 {% block content %} |
13 <h2>Downloads</h2> | 13 <h2>Downloads</h2> |
14 {% downloads_navigation %} | 14 {% include 'downloads/navigation.html' %} |
15 <h3>Category: {{ category.title }}</h3> | 15 <h3>Category: {{ category.title }}</h3> |
16 | 16 |
17 {% if page.object_list %} | 17 {% if page.object_list %} |
18 <ul class="tab-nav"> | 18 <ul class="tab-nav"> |
19 <li><a href="{% url downloads-category category=category.id sort="title" page="1" %}" | 19 <li><a href="{% url downloads-category slug=category.slug sort="title" %}" |
20 {% ifequal s "title" %}class="active" {% endifequal %}>Title</a></li> | 20 {% ifequal s "title" %}class="active" {% endifequal %}>Title</a></li> |
21 <li><a href="{% url downloads-category category=category.id sort="date" page="1" %}" | 21 <li><a href="{% url downloads-category slug=category.slug sort="date" %}" |
22 {% ifequal s "date" %}class="active"{% endifequal %}>Date</a></li> | 22 {% ifequal s "date" %}class="active"{% endifequal %}>Date</a></li> |
23 <li><a href="{% url downloads-category category=category.id sort="rating" page="1" %}" | 23 <li><a href="{% url downloads-category slug=category.slug sort="rating" %}" |
24 {% ifequal s "rating" %}class="active"{% endifequal %}>Rating</a></li> | 24 {% ifequal s "rating" %}class="active"{% endifequal %}>Rating</a></li> |
25 <li><a href="{% url downloads-category category=category.id sort="hits" page="1" %}" | 25 <li><a href="{% url downloads-category slug=category.slug sort="hits" %}" |
26 {% ifequal s "hits" %}class="active"{% endifequal %}>Hits</a></li> | 26 {% ifequal s "hits" %}class="active"{% endifequal %}>Hits</a></li> |
27 </ul> | 27 </ul> |
28 | 28 |
29 {% include 'core/pagination.html' %} | 29 {% include 'core/pagination.html' %} |
30 | 30 |