Mercurial > public > sg101
annotate gpp/templates/downloads/search_results.html @ 6:b6263ac72052
Use DRY principle to manage third party javascript libraries. Created script_tags template tags to generate the correct link and script tags for 3rd party libraries. The settings.py file is the only place where the full path name is specified.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 11 Apr 2009 22:50:56 +0000 |
parents | dbd703f7d63a |
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: Search Results{% 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>Search Results: {{ query }}</h3> |
gremmie@1 | 18 |
gremmie@1 | 19 {% if page.object_list %} |
gremmie@1 | 20 {% include 'core/pagination_query.html' %} |
gremmie@1 | 21 |
gremmie@1 | 22 <dl> |
gremmie@1 | 23 {% for download in page.object_list %} |
gremmie@1 | 24 {% include 'downloads/download.html' %} |
gremmie@1 | 25 {% endfor %} |
gremmie@1 | 26 </dl> |
gremmie@1 | 27 |
gremmie@1 | 28 {% include 'core/pagination_query.html' %} |
gremmie@1 | 29 {% else %} |
gremmie@1 | 30 <p>No results found for "{{ query }}".</p> |
gremmie@1 | 31 {% endif %} |
gremmie@1 | 32 {% endblock %} |