comparison gpp/templates/downloads/download_summary.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 %}{{ title }}{% endblock %} 4 {% block title %}{{ title }}{% 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 {% endblock %} 7 {% endblock %}
7 {% block custom_js %} 8 {% block custom_js %}
8 <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-1.2.6.min.js"></script> 9 {% script_tags "jquery" %}
9 <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>
10 {% endblock %} 11 {% endblock %}
11 {% block content %} 12 {% block content %}
12 <h2>Downloads</h2> 13 <h2>Downloads</h2>
13 {% downloads_navigation %} 14 {% downloads_navigation %}