Mercurial > public > sg101
annotate gpp/templates/downloads/download_list.html @ 578:a18516692273
Correct my Redis API error in unit test.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 05 May 2012 14:49:42 -0500 |
parents | 41411066b16d |
children |
rev | line source |
---|---|
gremmie@1 | 1 {% extends 'base.html' %} |
bgneal@310 | 2 {% load url from future %} |
gremmie@1 | 3 {% load downloads_tags %} |
gremmie@1 | 4 {% block title %}Downloads: {{ category.title }}{% endblock %} |
gremmie@1 | 5 {% block custom_css %} |
bgneal@312 | 6 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/downloads.css" /> |
bgneal@312 | 7 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/tab-nav.css" /> |
bgneal@312 | 8 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pagination.css" /> |
gremmie@1 | 9 {% endblock %} |
gremmie@1 | 10 {% block custom_js %} |
bgneal@312 | 11 <script type="text/javascript" src="{{ STATIC_URL }}js/rating.js"></script> |
bgneal@404 | 12 <script type="text/javascript" src="{{ STATIC_URL }}js/downloads-get.js"></script> |
gremmie@1 | 13 {% endblock %} |
gremmie@1 | 14 {% block content %} |
gremmie@1 | 15 <h2>Downloads</h2> |
bgneal@241 | 16 {% include 'downloads/navigation.html' %} |
gremmie@1 | 17 <h3>Category: {{ category.title }}</h3> |
gremmie@1 | 18 |
gremmie@1 | 19 {% if page.object_list %} |
gremmie@1 | 20 <ul class="tab-nav"> |
bgneal@310 | 21 <li><a href="{% url 'downloads-category' slug=category.slug sort="title" %}" |
gremmie@1 | 22 {% ifequal s "title" %}class="active" {% endifequal %}>Title</a></li> |
bgneal@310 | 23 <li><a href="{% url 'downloads-category' slug=category.slug sort="date" %}" |
gremmie@1 | 24 {% ifequal s "date" %}class="active"{% endifequal %}>Date</a></li> |
bgneal@310 | 25 <li><a href="{% url 'downloads-category' slug=category.slug sort="rating" %}" |
gremmie@1 | 26 {% ifequal s "rating" %}class="active"{% endifequal %}>Rating</a></li> |
bgneal@310 | 27 <li><a href="{% url 'downloads-category' slug=category.slug sort="hits" %}" |
gremmie@1 | 28 {% ifequal s "hits" %}class="active"{% endifequal %}>Hits</a></li> |
gremmie@1 | 29 </ul> |
gremmie@1 | 30 |
gremmie@1 | 31 {% include 'core/pagination.html' %} |
gremmie@1 | 32 |
gremmie@1 | 33 <dl> |
gremmie@1 | 34 {% for download in page.object_list %} |
gremmie@1 | 35 {% include 'downloads/download.html' %} |
gremmie@1 | 36 {% endfor %} |
gremmie@1 | 37 </dl> |
gremmie@1 | 38 |
gremmie@1 | 39 {% include 'core/pagination.html' %} |
gremmie@1 | 40 {% else %} |
gremmie@1 | 41 <p>No downloads in this category at this time.</p> |
gremmie@1 | 42 {% endif %} |
gremmie@1 | 43 {% endblock %} |