annotate gpp/templates/base.html @ 505:a5d11471d031

Refactor the logic in the rate limiter decorator. Check to see if the request was ajax, as the ajax view always returns 200. Have to decode the JSON response to see if an error occurred or not.
author Brian Neal <bgneal@gmail.com>
date Sat, 03 Dec 2011 19:13:38 +0000
parents 886cc99e8406
children 8631d32e6b16
rev   line source
bgneal@496 1 <?xml version="1.0" encoding="UTF-8"?>
bgneal@496 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
bgneal@496 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
bgneal@484 4 <html xmlns="http://www.w3.org/1999/xhtml"
bgneal@484 5 xmlns:og="http://ogp.me/ns#"
bgneal@484 6 xmlns:fb="https://www.facebook.com/2008/fbml"
bgneal@484 7 xml:lang="en" lang="en">
bgneal@323 8 {% load url from future %}
gremmie@1 9 {% load shoutbox_tags %}
gremmie@1 10 {% load irc_tags %}
gremmie@1 11 {% load potd_tags %}
bgneal@12 12 {% load script_tags %}
bgneal@367 13 {% load poll_tags %}
bgneal@421 14 {% load core_tags %}
bgneal@43 15 {% load cache %}
gremmie@1 16 <head><title>SurfGuitar101.com | {% block title %}{% endblock %}</title>
gremmie@1 17 <meta http-equiv="Content-Type" content="text/html" />
gremmie@1 18 <meta http-equiv="Content-Language" content="en-US" />
gremmie@1 19 <meta name="robots" content="all" />
gremmie@1 20 <meta name="Author" content="Brian Neal" />
bgneal@402 21 <meta name="copyright" content="&copy; 2006 - 2011 Brian Neal" />
bgneal@484 22 {% block custom_meta %}{% endblock %}
bgneal@312 23 <link rel="stylesheet" href="{{ STATIC_URL }}css/blueprint/screen.css" type="text/css" media="screen, projection" />
bgneal@312 24 <link rel="stylesheet" href="{{ STATIC_URL }}css/blueprint/print.css" type="text/css" media="print" />
bgneal@58 25 <!--[if lt IE 8]>
bgneal@312 26 <link rel="stylesheet" href="{{ STATIC_URL }}css/blueprint/ie.css" type="text/css" media="screen, projection" />
gremmie@1 27 <![endif]-->
bgneal@312 28 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/base.css" />
bgneal@312 29 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/shoutbox.css" />
bgneal@12 30 {% script_tags "jquery" %}
gremmie@1 31 {% block custom_head %}{% endblock %}
gremmie@1 32 {% block custom_css %}{% endblock %}
gremmie@1 33 {% block custom_js %}{% endblock %}
bgneal@312 34 <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.cycle.all.min.js"></script>
bgneal@312 35 <script type="text/javascript" src="{{ STATIC_URL }}js/shoutbox.js"></script>
bgneal@317 36 <link rel="shortcut icon" type="image/vnd.microsoft.com" href="{{ STATIC_URL }}favicon.ico" />
bgneal@500 37 {% if not user.is_authenticated %}
bgneal@500 38 {% script_tags "jquery-ui" %}
bgneal@500 39 <script type="text/javascript" src="{{ STATIC_URL }}js/ajax_login.js"></script>
bgneal@500 40 {% endif %}
gremmie@1 41 </head>
bgneal@490 42 <body>{% block begin_body %}{% endblock %}
gremmie@1 43 <div id="page" class="container">
gremmie@1 44 <div id="header" class="span-24">
bgneal@312 45 <p><a href="/" title="SG101 Home"><img src="{{ STATIC_URL }}themes/kds/sgLogo.png" alt="SurfGuitar101.com Logo" width="446" height="103" /></a></p>
bgneal@195 46 </div>
bgneal@195 47 <div id="header-nav" class="span-24">
bgneal@500 48 {% include "navbar.html" %}
gremmie@1 49 </div>
gremmie@1 50
gremmie@1 51 <div id="content-secondary" class="span-4 append-1">
gremmie@1 52 <ul class="nav-left">
bgneal@310 53 <li><a href="{% url 'home' %}">Home</a></li>
bgneal@310 54 <li><a href="{% url 'news-index_page' %}">News</a></li>
bgneal@310 55 <li><a href="{% url 'news-submit' %}">Submit News</a></li>
bgneal@310 56 <li><a href="{% url 'gcalendar-index' %}">Calendar</a></li>
bgneal@310 57 <li><a href="{% url 'contact-form' %}">Contact</a></li>
bgneal@317 58 <li><a href="{% url 'donations-index' %}">Donations</a></li>
bgneal@310 59 <li><a href="{% url 'downloads-index' %}">Downloads</a></li>
bgneal@310 60 <li><a href="{% url 'forums-index' %}">Forums</a></li>
bgneal@310 61 <li><a href="{% url 'irc-main' %}">IRC</a></li>
bgneal@310 62 <li><a href="{% url 'bio-member_list' type='user' %}">Member List</a></li>
bgneal@310 63 <li><a href="{% url 'membermap-index' %}">Member Map</a></li>
bgneal@429 64 <li><a href="{% url 'messages-index' %}">Private Messages</a></li>
bgneal@310 65 <li><a href="{% url 'podcast-main' %}">Podcast</a></li>
bgneal@310 66 <li><a href="{% url 'polls-main' %}">Polls</a></li>
bgneal@310 67 <li><a href="{% url 'potd-view' %}">Photo of the Day</a></li>
bgneal@310 68 <li><a href="{% url 'weblinks-main' %}">Links</a></li>
bgneal@310 69 <li><a href="{% url 'haystack_search' %}">Search</a></li>
bgneal@366 70 <li><a href="/store/">Store</a></li>
bgneal@323 71 <li><a href="{% url 'ygroup-thread_index' %}">Yahoo Group</a></li>
gremmie@1 72 </ul>
bgneal@342 73 {% include 'core/social_block.html' %}
bgneal@43 74 {% cache 300 potd_block %}
bgneal@43 75 {% photo_of_the_day %}
bgneal@43 76 {% endcache %}
gremmie@1 77 {% shoutbox %}
bgneal@329 78 {% cache 60 irc_block %}
bgneal@329 79 {% irc_status %}
bgneal@329 80 {% endcache %}
bgneal@368 81 {% cache 3600 poll_block %}
bgneal@368 82 {% latest_poll_block %}
bgneal@368 83 {% endcache %}
bgneal@422 84 {% cache 3600 birthday_block %}
bgneal@421 85 {% birthday_block %}
bgneal@422 86 {% endcache %}
bgneal@357 87 {% include 'core/mp3comp_block.html' %}
gremmie@1 88 </div>
gremmie@1 89
gremmie@1 90 <div id="content-primary" class="span-19 last">
bgneal@477 91 <div>
bgneal@477 92 <a href="/news/story/675/">
bgneal@477 93 <img src="{{ STATIC_URL }}images/50YrsSG101Banner.jpg" alt="50 Years of Surf Music" /></a>
bgneal@477 94 </div>
gremmie@1 95 {% block content %}
gremmie@1 96 {% endblock %}
gremmie@1 97 </div>
gremmie@1 98
bgneal@195 99 <div id="footer" class="prepend-5 span-19">
bgneal@19 100 <p>
bgneal@310 101 <a href="{% url 'contact-form' %}">Contact Us</a> &bull;
bgneal@42 102 <a href="/about/">About Us</a> &bull;
bgneal@42 103 <a href="/policy/tos/">Terms of Service</a> &bull;
bgneal@42 104 <a href="/policy/privacy/">Privacy Policy</a> &bull;
bgneal@42 105 <a href="/colophon/">Colophon</a>
bgneal@42 106 </p>
bgneal@42 107 <p>
bgneal@332 108 SurfGuitar101.com &copy; 2004 - 2011 by Brian Neal.
bgneal@42 109 All comments and user contributed articles are property of the posters.
bgneal@42 110 </p>
bgneal@42 111 <p>Thanks to all the surf bands, past and present. And thanks to all the fans who care about and keep surf
bgneal@42 112 music alive.</p>
gremmie@1 113 </div>
gremmie@1 114
bgneal@500 115 </div>
bgneal@500 116 {% if not user.is_authenticated %}
bgneal@500 117 {% include "accounts/ajax_login_form.html" %}
bgneal@500 118 {% endif %}
bgneal@500 119 {% block end_body %}{% endblock %}
gremmie@1 120 </body>
gremmie@1 121 </html>