comparison gpp/templates/downloads/download_list.html @ 1:dbd703f7d63a

Initial import of sg101 stuff from private repository.
author gremmie
date Mon, 06 Apr 2009 02:43:12 +0000
parents
children b6263ac72052
comparison
equal deleted inserted replaced
0:900ba3c7b765 1:dbd703f7d63a
1 {% extends 'base.html' %}
2 {% load downloads_tags %}
3 {% block title %}Downloads: {{ category.title }}{% endblock %}
4 {% 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/tab-nav.css" />
7 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" />
8 {% endblock %}
9 {% block custom_js %}
10 <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-1.2.6.min.js"></script>
11 <script type="text/javascript" src="{{ MEDIA_URL }}js/downloads/rating.js"></script>
12 {% endblock %}
13 {% block content %}
14 <h2>Downloads</h2>
15 {% downloads_navigation %}
16 <h3>Category: {{ category.title }}</h3>
17
18 {% if page.object_list %}
19 <ul class="tab-nav">
20 <li><a href="{% url downloads-category category=category.id,sort="title",page="1" %}"
21 {% ifequal s "title" %}class="active" {% endifequal %}>Title</a></li>
22 <li><a href="{% url downloads-category category=category.id,sort="date",page="1" %}"
23 {% ifequal s "date" %}class="active"{% endifequal %}>Date</a></li>
24 <li><a href="{% url downloads-category category=category.id,sort="rating",page="1" %}"
25 {% ifequal s "rating" %}class="active"{% endifequal %}>Rating</a></li>
26 <li><a href="{% url downloads-category category=category.id,sort="hits",page="1" %}"
27 {% ifequal s "hits" %}class="active"{% endifequal %}>Hits</a></li>
28 </ul>
29
30 {% include 'core/pagination.html' %}
31
32 <dl>
33 {% for download in page.object_list %}
34 {% include 'downloads/download.html' %}
35 {% endfor %}
36 </dl>
37
38 {% include 'core/pagination.html' %}
39 {% else %}
40 <p>No downloads in this category at this time.</p>
41 {% endif %}
42 {% endblock %}