Mercurial > public > sg101
comparison gpp/templates/downloads/download_comments.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 comment_tags %} | 3 {% load comment_tags %} |
4 {% load script_tags %} | |
4 {% block title %}Downloads Comments{% endblock %} | 5 {% block title %}Downloads Comments{% endblock %} |
5 {% block custom_css %} | 6 {% block custom_css %} |
6 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/comments.css" /> | 7 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/comments.css" /> |
7 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/downloads.css" /> | 8 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/downloads.css" /> |
8 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}js/markitup/skins/markitup/style.css" /> | |
9 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}js/markitup/sets/markdown/style.css" /> | |
10 {% endblock %} | 9 {% endblock %} |
11 {% block custom_js %} | 10 {% block custom_js %} |
12 <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-1.2.6.min.js"></script> | 11 {% script_tags "jquery" %} |
12 {% script_tags "markitup" %} | |
13 <script type="text/javascript" src="{{ MEDIA_URL }}js/comments.js"></script> | 13 <script type="text/javascript" src="{{ MEDIA_URL }}js/comments.js"></script> |
14 <script type="text/javascript" src="{{ MEDIA_URL }}js/markitup/jquery.markitup.pack.js"></script> | |
15 <script type="text/javascript" src="{{ MEDIA_URL }}js/markitup/sets/markdown/set.js"></script> | |
16 <script type="text/javascript" src="{{ MEDIA_URL }}js/downloads/rating.js"></script> | 14 <script type="text/javascript" src="{{ MEDIA_URL }}js/downloads/rating.js"></script> |
17 {% endblock %} | 15 {% endblock %} |
18 {% block content %} | 16 {% block content %} |
19 <h2>Downloads</h2> | 17 <h2>Downloads</h2> |
20 {% downloads_navigation %} | 18 {% downloads_navigation %} |