comparison gpp/templates/base.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents 4557974db0e0
children 88b2b9cb8c1f
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% load url from future %}
1 <?xml version="1.0" encoding="UTF-8"?> 2 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 5 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5 {% load shoutbox_tags %} 6 {% load shoutbox_tags %}
35 <p><a href="/" title="SG101 Home"><img src="{{ MEDIA_URL }}themes/kds/sgLogo.png" alt="SurfGuitar101.com Logo" width="446" height="103" /></a></p> 36 <p><a href="/" title="SG101 Home"><img src="{{ MEDIA_URL }}themes/kds/sgLogo.png" alt="SurfGuitar101.com Logo" width="446" height="103" /></a></p>
36 </div> 37 </div>
37 <div id="header-nav" class="span-24"> 38 <div id="header-nav" class="span-24">
38 <ul> 39 <ul>
39 {% if user.is_authenticated %} 40 {% if user.is_authenticated %}
40 <li>Welcome, <a href="{% url bio-me %}">{{ user.username }}</a></li> 41 <li>Welcome, <a href="{% url 'bio-me' %}">{{ user.username }}</a></li>
41 <li><a href="{% url forums-index %}">Forums</a></li> 42 <li><a href="{% url 'forums-index' %}">Forums</a></li>
42 <li>{% unread_messages user %}</li> 43 <li>{% unread_messages user %}</li>
43 <li><a href="{% url haystack_search %}">Search</a></li> 44 <li><a href="{% url 'haystack_search' %}">Search</a></li>
44 <li><a href="{% url accounts-logout %}">Logout</a></li> 45 <li><a href="{% url 'accounts-logout' %}">Logout</a></li>
45 {% else %} 46 {% else %}
46 <li><a href="{% url accounts-login %}">Login</a></li> 47 <li><a href="{% url 'accounts-login' %}">Login</a></li>
47 <li><a href="{% url accounts-register %}">Register</a></li> 48 <li><a href="{% url 'accounts-register' %}">Register</a></li>
48 {% endif %} 49 {% endif %}
49 </ul> 50 </ul>
50 </div> 51 </div>
51 52
52 <div id="content-secondary" class="span-4 append-1"> 53 <div id="content-secondary" class="span-4 append-1">
53 <ul class="nav-left"> 54 <ul class="nav-left">
54 <li><a href="{% url home %}">Home</a></li> 55 <li><a href="{% url 'home' %}">Home</a></li>
55 <li><a href="{% url news-index_page %}">News</a></li> 56 <li><a href="{% url 'news-index_page' %}">News</a></li>
56 <li><a href="{% url news-submit %}">Submit News</a></li> 57 <li><a href="{% url 'news-submit' %}">Submit News</a></li>
57 <li><a href="{% url gcalendar-index %}">Calendar</a></li> 58 <li><a href="{% url 'gcalendar-index' %}">Calendar</a></li>
58 <li><a href="{% url contact-form %}">Contact</a></li> 59 <li><a href="{% url 'contact-form' %}">Contact</a></li>
59 {# <li><a href="{% url donations-index %}">Donations</a></li> #} 60 {# <li><a href="{% url 'donations-index' %}">Donations</a></li> #}
60 <li><a href="{% url downloads-index %}">Downloads</a></li> 61 <li><a href="{% url 'downloads-index' %}">Downloads</a></li>
61 <li><a href="{% url forums-index %}">Forums</a></li> 62 <li><a href="{% url 'forums-index' %}">Forums</a></li>
62 <li><a href="{% url irc-main %}">IRC</a></li> 63 <li><a href="{% url 'irc-main' %}">IRC</a></li>
63 <li><a href="{% url bio-member_list type='user' %}">Member List</a></li> 64 <li><a href="{% url 'bio-member_list' type='user' %}">Member List</a></li>
64 <li><a href="{% url membermap-index %}">Member Map</a></li> 65 <li><a href="{% url 'membermap-index' %}">Member Map</a></li>
65 <li><a href="{% url messages-inbox %}">Private Messages</a></li> 66 <li><a href="{% url 'messages-inbox' %}">Private Messages</a></li>
66 <li><a href="{% url podcast-main %}">Podcast</a></li> 67 <li><a href="{% url 'podcast-main' %}">Podcast</a></li>
67 <li><a href="{% url polls-main %}">Polls</a></li> 68 <li><a href="{% url 'polls-main' %}">Polls</a></li>
68 <li><a href="{% url potd-view %}">Photo of the Day</a></li> 69 <li><a href="{% url 'potd-view' %}">Photo of the Day</a></li>
69 <li><a href="{% url weblinks-main %}">Links</a></li> 70 <li><a href="{% url 'weblinks-main' %}">Links</a></li>
70 <li><a href="{% url haystack_search %}">Search</a></li> 71 <li><a href="{% url 'haystack_search' %}">Search</a></li>
71 </ul> 72 </ul>
72 {% cache 300 potd_block %} 73 {% cache 300 potd_block %}
73 {% photo_of_the_day %} 74 {% photo_of_the_day %}
74 {% endcache %} 75 {% endcache %}
75 {% shoutbox %} 76 {% shoutbox %}
81 {% endblock %} 82 {% endblock %}
82 </div> 83 </div>
83 84
84 <div id="footer" class="prepend-5 span-19"> 85 <div id="footer" class="prepend-5 span-19">
85 <p> 86 <p>
86 <a href="{% url contact-form %}">Contact Us</a> &bull; 87 <a href="{% url 'contact-form' %}">Contact Us</a> &bull;
87 <a href="/about/">About Us</a> &bull; 88 <a href="/about/">About Us</a> &bull;
88 <a href="/policy/tos/">Terms of Service</a> &bull; 89 <a href="/policy/tos/">Terms of Service</a> &bull;
89 <a href="/policy/privacy/">Privacy Policy</a> &bull; 90 <a href="/policy/privacy/">Privacy Policy</a> &bull;
90 <a href="/colophon/">Colophon</a> 91 <a href="/colophon/">Colophon</a>
91 </p> 92 </p>