Mercurial > public > sg101
comparison gpp/templates/forums/post_ip.html @ 310:daa2916f5b34
Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 20 Jan 2011 04:03:48 +0000 |
parents | fe900598f81c |
children | 3c48a555298d |
comparison
equal
deleted
inserted
replaced
309:8a0bae48b6ca | 310:daa2916f5b34 |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load url from future %} | |
2 {% block title %}Post IP Address Info: {{ post.user_ip }}{% endblock %} | 3 {% block title %}Post IP Address Info: {{ post.user_ip }}{% endblock %} |
3 {% block content %} | 4 {% block content %} |
4 <h2>Post IP Address Info: {{ post.user_ip }}</h2> | 5 <h2>Post IP Address Info: {{ post.user_ip }}</h2> |
5 <p> | 6 <p> |
6 This <a href="{{ post.get_absolute_url }}">post</a> was created by | 7 This <a href="{{ post.get_absolute_url }}">post</a> was created by |
7 <a href="{% url bio-view_profile username=post.user.username %}">{{ post.user.username }}</a> from the IP address | 8 <a href="{% url 'bio-view_profile' username=post.user.username %}">{{ post.user.username }}</a> from the IP address |
8 <a href="http://www.dnsstuff.com/tools/whois/?ip={{ post.user_ip }}">{{ post.user_ip }}</a>. | 9 <a href="http://www.dnsstuff.com/tools/whois/?ip={{ post.user_ip }}">{{ post.user_ip }}</a>. |
9 </p> | 10 </p> |
10 {% if ip_users %} | 11 {% if ip_users %} |
11 <p>All users who have posted from {{ post.user_ip }}:</p> | 12 <p>All users who have posted from {{ post.user_ip }}:</p> |
12 <ul> | 13 <ul> |
13 {% for user in ip_users %} | 14 {% for user in ip_users %} |
14 <li><a href="{% url bio-view_profile username=user %}">{{ user }}</a> | 15 <li><a href="{% url 'bio-view_profile' username=user %}">{{ user }}</a> |
15 (<a href="{% url forums-posts_for_user username=user %}">posts</a>)</li> | 16 (<a href="{% url 'forums-posts_for_user' username=user %}">posts</a>)</li> |
16 {% endfor %} | 17 {% endfor %} |
17 </ul> | 18 </ul> |
18 {% endif %} | 19 {% endif %} |
19 {% endblock %} | 20 {% endblock %} |