Mercurial > public > sg101
annotate gpp/templates/forums/post_ip.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 |
---|---|
bgneal@216 | 1 {% extends 'base.html' %} |
bgneal@310 | 2 {% load url from future %} |
bgneal@492 | 3 {% load bio_tags %} |
bgneal@216 | 4 {% block title %}Post IP Address Info: {{ post.user_ip }}{% endblock %} |
bgneal@216 | 5 {% block content %} |
bgneal@216 | 6 <h2>Post IP Address Info: {{ post.user_ip }}</h2> |
bgneal@216 | 7 <p> |
bgneal@216 | 8 This <a href="{{ post.get_absolute_url }}">post</a> was created by |
bgneal@492 | 9 {% profile_link post.user.username %} from the IP address |
bgneal@216 | 10 <a href="http://www.dnsstuff.com/tools/whois/?ip={{ post.user_ip }}">{{ post.user_ip }}</a>. |
bgneal@216 | 11 </p> |
bgneal@216 | 12 {% if ip_users %} |
bgneal@216 | 13 <p>All users who have posted from {{ post.user_ip }}:</p> |
bgneal@216 | 14 <ul> |
bgneal@216 | 15 {% for user in ip_users %} |
bgneal@492 | 16 <li>{% profile_link user %} (<a href="{% url 'forums-posts_for_user' username=user %}">posts</a>)</li> |
bgneal@216 | 17 {% endfor %} |
bgneal@216 | 18 </ul> |
bgneal@216 | 19 {% endif %} |
bgneal@216 | 20 {% endblock %} |