comparison gpp/templates/bio/view_profile.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 e43b1be24ccc
children 88b2b9cb8c1f
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% extends 'bio/base.html' %} 1 {% extends 'bio/base.html' %}
2 {% load url from future %}
2 {% load avatar_tags %} 3 {% load avatar_tags %}
3 {% load elsewhere_tags %} 4 {% load elsewhere_tags %}
4 {% load core_tags %} 5 {% load core_tags %}
5 {% load forum_tags %} 6 {% load forum_tags %}
6 {% block title %}User Profile for {{ subject.username }}{% endblock %} 7 {% block title %}User Profile for {{ subject.username }}{% endblock %}
23 </ul> 24 </ul>
24 {% endif %} 25 {% endif %}
25 {% if this_is_me %} 26 {% if this_is_me %}
26 <p>{% avatar subject %} 27 <p>{% avatar subject %}
27 <ul> 28 <ul>
28 <li><a href="{% url forums-manage_favorites %}">My favorite forum topics</a></li> 29 <li><a href="{% url 'forums-manage_favorites' %}">My favorite forum topics</a></li>
29 <li><a href="{% url forums-manage_subscriptions %}">My forum topic subscriptions</a></li> 30 <li><a href="{% url 'forums-manage_subscriptions' %}">My forum topic subscriptions</a></li>
30 </ul> 31 </ul>
31 </p> 32 </p>
32 {% else %} 33 {% else %}
33 <p>{% avatar subject %}</p> 34 <p>{% avatar subject %}</p>
34 {% endif %} 35 {% endif %}
76 </td></tr> 77 </td></tr>
77 </table> 78 </table>
78 </div> 79 </div>
79 {% if this_is_me %} 80 {% if this_is_me %}
80 <ul class="icon-list"> 81 <ul class="icon-list">
81 <li><a href="{% url bio-edit_profile %}"><img src="{{ MEDIA_URL }}icons/application_edit.png" alt="Edit Profile" /></a> 82 <li><a href="{% url 'bio-edit_profile' %}"><img src="{{ MEDIA_URL }}icons/application_edit.png" alt="Edit Profile" /></a>
82 <a href="{% url bio-edit_profile %}">Edit Profile</a></li> 83 <a href="{% url 'bio-edit_profile' %}">Edit Profile</a></li>
83 <li><a href="{% url bio-change_avatar %}"><img src="{{ MEDIA_URL }}icons/image_edit.png" alt="Change Avatar" /></a> 84 <li><a href="{% url 'bio-change_avatar' %}"><img src="{{ MEDIA_URL }}icons/image_edit.png" alt="Change Avatar" /></a>
84 <a href="{% url bio-change_avatar %}">Change Avatar</a></li> 85 <a href="{% url 'bio-change_avatar' %}">Change Avatar</a></li>
85 <li><a href="{% url bio-edit_elsewhere %}"><img src="{{ MEDIA_URL }}icons/link_edit.png" alt="Edit Links" /></a> 86 <li><a href="{% url 'bio-edit_elsewhere' %}"><img src="{{ MEDIA_URL }}icons/link_edit.png" alt="Edit Links" /></a>
86 <a href="{% url bio-edit_elsewhere %}">Edit Elsewhere Links</a></li> 87 <a href="{% url 'bio-edit_elsewhere' %}">Edit Elsewhere Links</a></li>
87 <li><a href="{% url django.contrib.auth.views.password_change %}"><img src="{{ MEDIA_URL }}icons/key.png" alt="Change Password" /></a> 88 <li><a href="{% url 'django.contrib.auth.views.password_change' %}"><img src="{{ MEDIA_URL }}icons/key.png" alt="Change Password" /></a>
88 <a href="{% url django.contrib.auth.views.password_change %}">Change Password</a></li> 89 <a href="{% url 'django.contrib.auth.views.password_change' %}">Change Password</a></li>
89 </ul> 90 </ul>
90 {% else %} 91 {% else %}
91 {% if user.is_authenticated %} 92 {% if user.is_authenticated %}
92 <ul class="icon-list"> 93 <ul class="icon-list">
93 <li><a href="{% url messages-compose_to subject.username %}"><img src="{{ MEDIA_URL }}icons/note.png" alt="PM" title="Send Private Message" /></a> <a href="{% url messages-compose_to subject.username %}">Send a private message to {{ subject.username }}</a></li> 94 <li><a href="{% url 'messages-compose_to' subject.username %}"><img src="{{ MEDIA_URL }}icons/note.png" alt="PM" title="Send Private Message" /></a> <a href="{% url 'messages-compose_to' subject.username %}">Send a private message to {{ subject.username }}</a></li>
94 <li><a href="{% url forums-posts_for_user username=subject.username %}"><img src="{{ MEDIA_URL }}icons/comments.png" 95 <li><a href="{% url 'forums-posts_for_user' username=subject.username %}"><img src="{{ MEDIA_URL }}icons/comments.png"
95 alt="Forum Posts" title="View forum posts by {{ subject.username }}" /></a> <a href="{% url forums-posts_for_user username=subject.username %}">View forum posts by {{ subject.username }}</a></li> 96 alt="Forum Posts" title="View forum posts by {{ subject.username }}" /></a> <a href="{% url 'forums-posts_for_user' username=subject.username %}">View forum posts by {{ subject.username }}</a></li>
96 <li><img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /> 97 <li><img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" />
97 <a href="#" class="profile-flag" id="fp-{{ profile.id }}">Report this profile</a></li> 98 <a href="#" class="profile-flag" id="fp-{{ profile.id }}">Report this profile</a></li>
98 </ul> 99 </ul>
99 {% endif %} 100 {% endif %}
100 {% endif %} 101 {% endif %}