Mercurial > public > sg101
comparison gpp/templates/membermap/index.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 script_tags %} | |
2 {% block title %}Member Map{% endblock %} | 3 {% block title %}Member Map{% endblock %} |
3 {% block custom_js %} | 4 {% block custom_js %} |
4 <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-1.2.6.min.js"></script> | 5 {% script_tags "jquery" %} |
5 <script type="text/javascript" src="{{ MEDIA_URL }}js/membermap.js"></script> | 6 <script type="text/javascript" src="{{ MEDIA_URL }}js/membermap.js"></script> |
6 <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAql_1Xw9MGW3mOxzo8gLb3hStsp1UIpjYO7Py4hlJXjRzAdyQtBTt5uM4QCgXtTKcuwba8HA9TL9LgQ" type="text/javascript"></script> | 7 <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAql_1Xw9MGW3mOxzo8gLb3hStsp1UIpjYO7Py4hlJXjRzAdyQtBTt5uM4QCgXtTKcuwba8HA9TL9LgQ" type="text/javascript"></script> |
7 {{ form.media }} | 8 {{ form.media }} |
8 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/membermap.css" /> | 9 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/membermap.css" /> |
9 <script type="text/javascript"> | 10 <script type="text/javascript"> |