annotate gpp/templates/news/base.html @ 322:c3d3d7114749

Fix #148; Django now requires AJAX posts to present the CSRF token. Added code suggested by Django docs to shoutbox.js. Since shoutbox.js is on every page, it should cover all cases.
author Brian Neal <bgneal@gmail.com>
date Sat, 12 Feb 2011 21:37:17 +0000
parents 88b2b9cb8c1f
children
rev   line source
gremmie@1 1 {% extends 'base.html' %}
bgneal@310 2 {% load url from future %}
gremmie@1 3 {% block custom_head %}
bgneal@310 4 <link rel="alternate" type="application/rss+xml" title="SurfGuitar101 News" href="{% url 'feeds-news' %}" />
gremmie@1 5 {% endblock %}
gremmie@1 6 {% block custom_css %}
bgneal@312 7 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/news.css" />
gremmie@1 8 {% block news_css %}{% endblock %}
gremmie@1 9 {% endblock %}
gremmie@1 10 {% block content %}
bgneal@312 11 <h2>SurfGuitar101 News &amp; Articles <a href="{% url 'feeds-news' %}"><img src="{{ STATIC_URL }}icons/feed.png" alt="News Feed" title="News Feed" /></a></h2>
bgneal@240 12
gremmie@1 13 <ul class="app-menu">
bgneal@310 14 <li><a href="{% url 'news-index_page' %}">News Main</a></li>
bgneal@310 15 <li><a href="{% url 'news-archive_index' %}">Archive</a></li>
bgneal@310 16 <li><a href="{% url 'news-category_index' %}">Categories</a></li>
bgneal@310 17 <li><a href="{% url 'news-tag_index' %}">Tags</a></li>
bgneal@310 18 <li><a href="{% url 'news-submit' %}">Submit News</a></li>
gremmie@1 19 </ul>
gremmie@1 20 {% block news_content %}
gremmie@1 21 {% endblock %}
gremmie@1 22 {% endblock %}