annotate gpp/templates/base.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 <?xml version="1.0" encoding="UTF-8"?>
gremmie@1 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
gremmie@1 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
gremmie@1 4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
gremmie@1 5 {% load shoutbox_tags %}
gremmie@1 6 {% load irc_tags %}
gremmie@1 7 {% load potd_tags %}
gremmie@1 8 {% load messages_tags %}
gremmie@1 9 <head><title>SurfGuitar101.com | {% block title %}{% endblock %}</title>
gremmie@1 10 <meta http-equiv="Content-Type" content="text/html" />
gremmie@1 11 <meta http-equiv="Content-Language" content="en-US" />
gremmie@1 12 <meta name="robots" content="all" />
gremmie@1 13 <meta name="Author" content="Brian Neal" />
gremmie@1 14 <meta name="copyright" content="&copy; 2009 Brian Neal" />
gremmie@1 15 <link rel="stylesheet" href="{{ MEDIA_URL }}css/blueprint/screen.css" type="text/css" media="screen, projection" />
gremmie@1 16 <link rel="stylesheet" href="{{ MEDIA_URL }}css/blueprint/print.css" type="text/css" media="print" />
gremmie@1 17 <!--[if IE]>
gremmie@1 18 <link rel="stylesheet" href="{{ MEDIA_URL }}css/blueprint/ie.css" type="text/css" media="screen, projection" />
gremmie@1 19 <![endif]-->
gremmie@1 20 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/base.css" />
gremmie@1 21 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/shoutbox.css" />
gremmie@1 22 <!--<script type="text/javascript" src="{{ MEDIA_URL }}js/shoutbox.js"></script>-->
gremmie@1 23 {% block custom_head %}{% endblock %}
gremmie@1 24 {% block custom_css %}{% endblock %}
gremmie@1 25 {% block custom_js %}{% endblock %}
gremmie@1 26 <!-- <link rel="shortcut icon" type="image/vnd.microsoft.com" href="{{ MEDIA_URL }}images/favicon.ico" /> -->
gremmie@1 27 </head>
gremmie@1 28 <body>
gremmie@1 29 <div id="page" class="container">
gremmie@1 30 <div id="header" class="span-24">
gremmie@1 31 <h1>SurfGuitar101</h1>
gremmie@1 32 <p>Header content</p>
gremmie@1 33 <ul>
gremmie@1 34 {% if user.is_authenticated %}
gremmie@1 35 <li>{% unread_messages user %}</li>
gremmie@1 36 <li><a href="{% url bio-me %}">My Profile</a></li>
gremmie@1 37 <li><a href="{% url accounts-logout %}">Logout</a></li>
gremmie@1 38 {% else %}
gremmie@1 39 <li><a href="{% url accounts-login %}">Login</a></li>
gremmie@1 40 <li><a href="{% url accounts-register %}">Register</a></li>
gremmie@1 41 {% endif %}
gremmie@1 42 </ul>
gremmie@1 43 </div>
gremmie@1 44
gremmie@1 45 <div id="content-secondary" class="span-4 append-1">
gremmie@1 46 <ul class="nav-left">
gremmie@1 47 <li><a href="{% url news-index_page page=1 %}">Home</a></li>
gremmie@1 48 <li><a href="{% url news-index_page page=1 %}">News</a></li>
gremmie@1 49 <li><a href="{% url gcalendar-index %}">Calendar</a></li>
gremmie@1 50 <li><a href="{% url contact-form %}">Contact</a></li>
gremmie@1 51 <li><a href="{% url irc-main %}">IRC</a></li>
gremmie@1 52 <li><a href="{% url bio-members %}">Member List</a></li>
gremmie@1 53 <li><a href="{% url membermap-index %}">Member Map</a></li>
gremmie@1 54 <li><a href="{% url messages-inbox %}">Private Messages</a></li>
gremmie@1 55 <li><a href="{% url podcast-main %}">Podcast</a></li>
gremmie@1 56 <li><a href="{% url polls-main %}">Polls</a></li>
gremmie@1 57 <li><a href="{% url potd-view %}">Photo of the Day</a></li>
gremmie@1 58 <li><a href="{% url weblinks-main %}">Links</a></li>
gremmie@1 59 <li><a href="{% url downloads-index %}">Downloads</a></li>
gremmie@1 60 </ul>
gremmie@1 61 {% photo_of_the_day %}
gremmie@1 62 {% shoutbox %}
gremmie@1 63 {% irc_status %}
gremmie@1 64 </div>
gremmie@1 65
gremmie@1 66 <div id="content-primary" class="span-19 last">
gremmie@1 67 {% block content %}
gremmie@1 68 {% endblock %}
gremmie@1 69 </div>
gremmie@1 70
gremmie@1 71
gremmie@1 72 <div id="footer" class="span-24">
gremmie@1 73 <p>Website &copy; 2008 by Brian Neal</p>
gremmie@1 74 </div>
gremmie@1 75
gremmie@1 76 {% if debug %}
gremmie@1 77 <div id="debug" class="span-24">
gremmie@1 78 <ol>
gremmie@1 79 {% for s in sql_queries %}
gremmie@1 80 <li>{{ s.sql }} : <b>({{ s.time }})</b></li>
gremmie@1 81 {% endfor %}
gremmie@1 82 </ol>
gremmie@1 83 </div>
gremmie@1 84 {% endif %}
gremmie@1 85
gremmie@1 86 </div>
gremmie@1 87 </body>
gremmie@1 88 </html>