gremmie@1: {% extends 'base.html' %}
bgneal@310: {% load url from future %}
gremmie@1: {% load downloads_tags %}
gremmie@1: {% block title %}Downloads: {{ category.title }}{% endblock %}
gremmie@1: {% block custom_css %}
bgneal@312: <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/downloads.css" />
bgneal@312: <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/tab-nav.css" />
bgneal@312: <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pagination.css" />
gremmie@1: {% endblock %}
gremmie@1: {% block custom_js %}
bgneal@312: <script type="text/javascript" src="{{ STATIC_URL }}js/rating.js"></script>
gremmie@1: {% endblock %}
gremmie@1: {% block content %}
gremmie@1: <h2>Downloads</h2>
bgneal@241: {% include 'downloads/navigation.html' %}
gremmie@1: <h3>Category: {{ category.title }}</h3>
gremmie@1: 
gremmie@1: {% if page.object_list %}
gremmie@1: <ul class="tab-nav">
bgneal@310:    <li><a href="{% url 'downloads-category' slug=category.slug sort="title" %}"
gremmie@1:       {% ifequal s "title" %}class="active" {% endifequal %}>Title</a></li>
bgneal@310:    <li><a href="{% url 'downloads-category' slug=category.slug sort="date" %}"
gremmie@1:       {% ifequal s "date" %}class="active"{% endifequal %}>Date</a></li>
bgneal@310:    <li><a href="{% url 'downloads-category' slug=category.slug sort="rating" %}"
gremmie@1:       {% ifequal s "rating" %}class="active"{% endifequal %}>Rating</a></li>
bgneal@310:    <li><a href="{% url 'downloads-category' slug=category.slug sort="hits" %}"
gremmie@1:       {% ifequal s "hits" %}class="active"{% endifequal %}>Hits</a></li>
gremmie@1: </ul>
gremmie@1: 
gremmie@1: {% include 'core/pagination.html' %}
gremmie@1: 
gremmie@1: <dl>
gremmie@1: {% for download in page.object_list %}
gremmie@1:    {% include 'downloads/download.html' %}
gremmie@1: {% endfor %}
gremmie@1: </dl>
gremmie@1: 
gremmie@1: {% include 'core/pagination.html' %}
gremmie@1: {% else %}
gremmie@1: <p>No downloads in this category at this time.</p>
gremmie@1: {% endif %}
gremmie@1: {% endblock %}