Mercurial > public > sg101
annotate gpp/templates/shoutbox/view.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 | 3c48a555298d |
children |
rev | line source |
---|---|
gremmie@1 | 1 {% extends 'base.html' %} |
bgneal@492 | 2 {% load bio_tags %} |
bgneal@6 | 3 {% load script_tags %} |
gremmie@1 | 4 {% block custom_css %} |
bgneal@312 | 5 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/shoutbox_app.css" /> |
bgneal@312 | 6 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pagination.css" /> |
gremmie@1 | 7 {% endblock %} |
gremmie@1 | 8 {% block custom_js %} |
bgneal@6 | 9 {% script_tags "jquery-jeditable" %} |
bgneal@312 | 10 <script type="text/javascript" src="{{ STATIC_URL }}js/shoutbox_app.js"></script> |
gremmie@1 | 11 {% endblock %} |
gremmie@1 | 12 {% block title %}Shout History{% endblock %} |
gremmie@1 | 13 {% block content %} |
gremmie@1 | 14 <h2>Shout History</h2> |
gremmie@1 | 15 {% if page.object_list %} |
gremmie@1 | 16 {% include 'core/pagination.html' %} |
gremmie@1 | 17 |
gremmie@1 | 18 <div class="shoutbox-history"> |
gremmie@1 | 19 <table> |
gremmie@1 | 20 {% for shout in page.object_list %} |
bgneal@13 | 21 {% include "shoutbox/shout_detail.html" %} |
gremmie@1 | 22 {% endfor %} |
gremmie@1 | 23 </table> |
gremmie@1 | 24 </div> |
gremmie@1 | 25 |
gremmie@1 | 26 {% include 'core/pagination.html' %} |
gremmie@1 | 27 {% else %} |
gremmie@1 | 28 <p>No shouts at this time.</p> |
gremmie@1 | 29 {% endif %} |
gremmie@1 | 30 {% endblock %} |