Mercurial > public > sg101
view 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 |
line wrap: on
line source
{% extends 'base.html' %} {% load url from future %} {% block custom_head %} <link rel="alternate" type="application/rss+xml" title="SurfGuitar101 News" href="{% url 'feeds-news' %}" /> {% endblock %} {% block custom_css %} <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/news.css" /> {% block news_css %}{% endblock %} {% endblock %} {% block content %} <h2>SurfGuitar101 News & Articles <a href="{% url 'feeds-news' %}"><img src="{{ STATIC_URL }}icons/feed.png" alt="News Feed" title="News Feed" /></a></h2> <ul class="app-menu"> <li><a href="{% url 'news-index_page' %}">News Main</a></li> <li><a href="{% url 'news-archive_index' %}">Archive</a></li> <li><a href="{% url 'news-category_index' %}">Categories</a></li> <li><a href="{% url 'news-tag_index' %}">Tags</a></li> <li><a href="{% url 'news-submit' %}">Submit News</a></li> </ul> {% block news_content %} {% endblock %} {% endblock %}