annotate gpp/templates/base.html @ 197:2baadae33f2e

Got autocomplete working for the member search. Updated django and ran into a bug where url tags with comma separated kwargs starting consuming tons of CPU throughput. The work-around is to cut over to using spaces between arguments. This is now allowed to be consistent with other tags. Did some query optimization for the news app.
author Brian Neal <bgneal@gmail.com>
date Sat, 10 Apr 2010 04:32:24 +0000
parents 136719cbcb3c
children 26ee684c2033
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 %}
bgneal@12 9 {% load script_tags %}
bgneal@43 10 {% load cache %}
gremmie@1 11 <head><title>SurfGuitar101.com | {% block title %}{% endblock %}</title>
gremmie@1 12 <meta http-equiv="Content-Type" content="text/html" />
gremmie@1 13 <meta http-equiv="Content-Language" content="en-US" />
gremmie@1 14 <meta name="robots" content="all" />
gremmie@1 15 <meta name="Author" content="Brian Neal" />
gremmie@1 16 <meta name="copyright" content="&copy; 2009 Brian Neal" />
gremmie@1 17 <link rel="stylesheet" href="{{ MEDIA_URL }}css/blueprint/screen.css" type="text/css" media="screen, projection" />
gremmie@1 18 <link rel="stylesheet" href="{{ MEDIA_URL }}css/blueprint/print.css" type="text/css" media="print" />
bgneal@58 19 <!--[if lt IE 8]>
gremmie@1 20 <link rel="stylesheet" href="{{ MEDIA_URL }}css/blueprint/ie.css" type="text/css" media="screen, projection" />
gremmie@1 21 <![endif]-->
gremmie@1 22 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/base.css" />
gremmie@1 23 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/shoutbox.css" />
bgneal@12 24 {% script_tags "jquery" %}
gremmie@1 25 {% block custom_head %}{% endblock %}
gremmie@1 26 {% block custom_css %}{% endblock %}
gremmie@1 27 {% block custom_js %}{% endblock %}
bgneal@12 28 {% if user.is_authenticated %}
bgneal@12 29 <script type="text/javascript" src="{{ MEDIA_URL }}js/shoutbox.js"></script>
bgneal@12 30 {% endif %}
gremmie@1 31 <!-- <link rel="shortcut icon" type="image/vnd.microsoft.com" href="{{ MEDIA_URL }}images/favicon.ico" /> -->
gremmie@1 32 </head>
gremmie@1 33 <body>
gremmie@1 34 <div id="page" class="container">
gremmie@1 35 <div id="header" class="span-24">
bgneal@195 36 <p><img src="{{ MEDIA_URL }}themes/kds/sgLogo.png" alt="SurfGuitar101.com Logo" width="446" height="103" /></p>
bgneal@195 37 </div>
bgneal@195 38 <div id="header-nav" class="span-24">
bgneal@195 39 <ul>
bgneal@195 40 {% if user.is_authenticated %}
bgneal@195 41 <li>Welcome, <a href="{% url bio-me %}">{{ user.username }}</a></li>
bgneal@195 42 <li><a href="{% url forums-index %}">Forums</a></li>
bgneal@195 43 <li>{% unread_messages user %}</li>
bgneal@195 44 <li><a href="{% url accounts-logout %}">Logout</a></li>
bgneal@195 45 {% else %}
bgneal@195 46 <li><a href="{% url accounts-login %}">Login</a></li>
bgneal@195 47 <li><a href="{% url accounts-register %}">Register</a></li>
bgneal@195 48 {% endif %}
bgneal@195 49 </ul>
gremmie@1 50 </div>
gremmie@1 51
gremmie@1 52 <div id="content-secondary" class="span-4 append-1">
gremmie@1 53 <ul class="nav-left">
bgneal@19 54 <li><a href="{% url home %}">Home</a></li>
gremmie@1 55 <li><a href="{% url news-index_page page=1 %}">News</a></li>
gremmie@1 56 <li><a href="{% url gcalendar-index %}">Calendar</a></li>
gremmie@1 57 <li><a href="{% url contact-form %}">Contact</a></li>
bgneal@42 58 <li><a href="{% url donations-index %}">Donations</a></li>
bgneal@88 59 <li><a href="{% url forums-index %}">Forums</a></li>
gremmie@1 60 <li><a href="{% url irc-main %}">IRC</a></li>
gremmie@1 61 <li><a href="{% url bio-members %}">Member List</a></li>
gremmie@1 62 <li><a href="{% url membermap-index %}">Member Map</a></li>
gremmie@1 63 <li><a href="{% url messages-inbox %}">Private Messages</a></li>
gremmie@1 64 <li><a href="{% url podcast-main %}">Podcast</a></li>
gremmie@1 65 <li><a href="{% url polls-main %}">Polls</a></li>
gremmie@1 66 <li><a href="{% url potd-view %}">Photo of the Day</a></li>
gremmie@1 67 <li><a href="{% url weblinks-main %}">Links</a></li>
gremmie@1 68 <li><a href="{% url downloads-index %}">Downloads</a></li>
gremmie@1 69 </ul>
bgneal@43 70 {% cache 300 potd_block %}
bgneal@43 71 {% photo_of_the_day %}
bgneal@43 72 {% endcache %}
gremmie@1 73 {% shoutbox %}
gremmie@1 74 {% irc_status %}
gremmie@1 75 </div>
gremmie@1 76
gremmie@1 77 <div id="content-primary" class="span-19 last">
gremmie@1 78 {% block content %}
gremmie@1 79 {% endblock %}
gremmie@1 80 </div>
gremmie@1 81
bgneal@195 82 <div id="footer" class="prepend-5 span-19">
bgneal@19 83 <p>
bgneal@19 84 TODO: Should put links to various policies down here. Additional navigation could go here.
bgneal@19 85 Add a colophon.
bgneal@19 86 </p>
bgneal@42 87 <p>
bgneal@42 88 <a href="{% url contact-form %}">Contact Us</a> &bull;
bgneal@42 89 <a href="/about/">About Us</a> &bull;
bgneal@42 90 <a href="/policy/tos/">Terms of Service</a> &bull;
bgneal@42 91 <a href="/policy/privacy/">Privacy Policy</a> &bull;
bgneal@42 92 <a href="/colophon/">Colophon</a>
bgneal@42 93 </p>
bgneal@42 94 <p>
bgneal@195 95 SurfGuitar101.com &copy; 2010 by Brian Neal.
bgneal@42 96 All comments and user contributed articles are property of the posters.
bgneal@42 97 </p>
bgneal@42 98 <p>Thanks to all the surf bands, past and present. And thanks to all the fans who care about and keep surf
bgneal@42 99 music alive.</p>
gremmie@1 100 </div>
gremmie@1 101
gremmie@1 102 {% if debug %}
gremmie@1 103 <div id="debug" class="span-24">
gremmie@1 104 <ol>
gremmie@1 105 {% for s in sql_queries %}
gremmie@1 106 <li>{{ s.sql }} : <b>({{ s.time }})</b></li>
gremmie@1 107 {% endfor %}
gremmie@1 108 </ol>
gremmie@1 109 </div>
gremmie@1 110 {% endif %}
gremmie@1 111
gremmie@1 112 </div>
gremmie@1 113 </body>
gremmie@1 114 </html>