Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
5:63696b279e35 | 6:b6263ac72052 |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load downloads_tags %} | 2 {% load downloads_tags %} |
3 {% load script_tags %} | |
3 {% block title %}Downloads: Search Results{% endblock %} | 4 {% block title %}Downloads: Search Results{% endblock %} |
4 {% block custom_css %} | 5 {% 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/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/tab-nav.css" /> |
7 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" /> | 8 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" /> |
8 {% endblock %} | 9 {% endblock %} |
9 {% block custom_js %} | 10 {% block custom_js %} |
10 <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-1.2.6.min.js"></script> | 11 {% script_tags "jquery" %} |
11 <script type="text/javascript" src="{{ MEDIA_URL }}js/downloads/rating.js"></script> | 12 <script type="text/javascript" src="{{ MEDIA_URL }}js/downloads/rating.js"></script> |
12 {% endblock %} | 13 {% endblock %} |
13 {% block content %} | 14 {% block content %} |
14 <h2>Downloads</h2> | 15 <h2>Downloads</h2> |
15 {% downloads_navigation %} | 16 {% downloads_navigation %} |