annotate gpp/templates/news/base.html @ 507:8631d32e6b16

Some users are still having problems with the pop-up login. I think they are actually getting 403s because of the CSRF protection. So I have modified the base template to always have a javascript variable called csrf_token available when they aren't logged in. The ajax_login.js script was then modified to send this value with the ajax post. Fingers crossed.
author Brian Neal <bgneal@gmail.com>
date Sun, 04 Dec 2011 03:05:21 +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 %}