annotate gpp/templates/downloads/download_list.html @ 11:cc8eb028def1

Update jquery-ui and theme version that is hosted on google. In preparation for having jquery on every page (?), make it so that the autocomplete plug is using the 'global' jquery, and not the one that came with it. It seems to work okay with jquery 1.3.2.
author Brian Neal <bgneal@gmail.com>
date Tue, 14 Apr 2009 02:35:35 +0000
parents b6263ac72052
children f408971657b9
rev   line source
gremmie@1 1 {% extends 'base.html' %}
gremmie@1 2 {% load downloads_tags %}
bgneal@6 3 {% load script_tags %}
gremmie@1 4 {% block title %}Downloads: {{ category.title }}{% endblock %}
gremmie@1 5 {% block custom_css %}
gremmie@1 6 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/downloads.css" />
gremmie@1 7 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/tab-nav.css" />
gremmie@1 8 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" />
gremmie@1 9 {% endblock %}
gremmie@1 10 {% block custom_js %}
bgneal@6 11 {% script_tags "jquery" %}
gremmie@1 12 <script type="text/javascript" src="{{ MEDIA_URL }}js/downloads/rating.js"></script>
gremmie@1 13 {% endblock %}
gremmie@1 14 {% block content %}
gremmie@1 15 <h2>Downloads</h2>
gremmie@1 16 {% downloads_navigation %}
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">
gremmie@1 21 <li><a href="{% url downloads-category category=category.id,sort="title",page="1" %}"
gremmie@1 22 {% ifequal s "title" %}class="active" {% endifequal %}>Title</a></li>
gremmie@1 23 <li><a href="{% url downloads-category category=category.id,sort="date",page="1" %}"
gremmie@1 24 {% ifequal s "date" %}class="active"{% endifequal %}>Date</a></li>
gremmie@1 25 <li><a href="{% url downloads-category category=category.id,sort="rating",page="1" %}"
gremmie@1 26 {% ifequal s "rating" %}class="active"{% endifequal %}>Rating</a></li>
gremmie@1 27 <li><a href="{% url downloads-category category=category.id,sort="hits",page="1" %}"
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 %}