comparison gpp/templates/downloads/download_summary.html @ 243:7ddd60164245

For #93: remove the page number from the URL. This commit fixes the shoutbox and member list. It also contains a change to downloads to add pagination to the new, popular, and highest rated views.
author Brian Neal <bgneal@gmail.com>
date Thu, 16 Sep 2010 01:06:43 +0000
parents 27bee3ac85e6
children 88b2b9cb8c1f
comparison
equal deleted inserted replaced
242:7e8d2dda99e3 243:7ddd60164245
1 {% extends 'base.html' %} 1 {% extends 'base.html' %}
2 {% load downloads_tags %} 2 {% load downloads_tags %}
3 {% block title %}{{ title }}{% endblock %} 3 {% block title %}{{ title }}{% endblock %}
4 {% block custom_css %} 4 {% block custom_css %}
5 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/downloads.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" />
6 {% endblock %} 8 {% endblock %}
7 {% block custom_js %} 9 {% block custom_js %}
8 <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>
9 {% endblock %} 11 {% endblock %}
10 {% block content %} 12 {% block content %}
11 <h2>Downloads</h2> 13 <h2>Downloads</h2>
12 {% include 'downloads/navigation.html' %} 14 {% include 'downloads/navigation.html' %}
13 <h3>{{ title }}</h3> 15 <h3>{{ title }}</h3>
14 16
15 {% if downloads %} 17 {% if page.object_list %}
18 {% include 'core/pagination.html' %}
16 <dl> 19 <dl>
17 {% for download in downloads %} 20 {% for download in page.object_list %}
18 {% include 'downloads/download.html' %} 21 {% include 'downloads/download.html' %}
19 {% endfor %} 22 {% endfor %}
20 </dl> 23 </dl>
24 {% include 'core/pagination.html' %}
21 {% else %} 25 {% else %}
22 <p>No downloads available at this time.</p> 26 <p>No downloads available at this time.</p>
23 {% endif %} 27 {% endif %}
24 {% endblock %} 28 {% endblock %}