Mercurial > public > sg101
comparison gpp/templates/bio/view_profile.html @ 492:3c48a555298d
Added a custom tag to display a link to a profile. Refactored the avatar tag to optionally display a profile link around the image. Removed the width and height attributes from the avatar image tag. I think this was causing disk hits whenever those properties were not cached. The avatar tag is now an inclusion tag.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 22 Oct 2011 00:07:50 +0000 |
parents | dc4638f37c22 |
children |
comparison
equal
deleted
inserted
replaced
491:7dbdbb08e68c | 492:3c48a555298d |
---|---|
1 {% extends 'bio/base.html' %} | 1 {% extends 'bio/base.html' %} |
2 {% load url from future %} | 2 {% load url from future %} |
3 {% load avatar_tags %} | 3 {% load bio_tags %} |
4 {% load elsewhere_tags %} | 4 {% load elsewhere_tags %} |
5 {% load core_tags %} | 5 {% load core_tags %} |
6 {% load forum_tags %} | 6 {% load forum_tags %} |
7 {% block title %}User Profile for {{ subject.username }}{% endblock %} | 7 {% block title %}User Profile for {{ subject.username }}{% endblock %} |
8 {% block custom_js %} | 8 {% block custom_js %} |
22 <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li> | 22 <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li> |
23 {% endfor %} | 23 {% endfor %} |
24 </ul> | 24 </ul> |
25 {% endif %} | 25 {% endif %} |
26 {% if this_is_me %} | 26 {% if this_is_me %} |
27 <p>{% avatar subject %} | 27 <p>{% avatar subject 0 %} |
28 <ul> | 28 <ul> |
29 <li><a href="{% url 'forums-my_posts' %}">My forum posts</a></li> | 29 <li><a href="{% url 'forums-my_posts' %}">My forum posts</a></li> |
30 <li><a href="{% url 'forums-manage_favorites' %}">My favorite forum topics</a></li> | 30 <li><a href="{% url 'forums-manage_favorites' %}">My favorite forum topics</a></li> |
31 <li><a href="{% url 'forums-manage_subscriptions' %}">My forum topic subscriptions</a></li> | 31 <li><a href="{% url 'forums-manage_subscriptions' %}">My forum topic subscriptions</a></li> |
32 </ul> | 32 </ul> |
33 </p> | 33 </p> |
34 {% else %} | 34 {% else %} |
35 <p>{% avatar subject %}</p> | 35 <p>{% avatar subject 0 %}</p> |
36 {% endif %} | 36 {% endif %} |
37 <table id="bio_profile"> | 37 <table id="bio_profile"> |
38 <tr><th>Full Name</th><td>{{ subject.get_full_name }}</td></tr> | 38 <tr><th>Full Name</th><td>{{ subject.get_full_name }}</td></tr> |
39 <tr><th>Date Joined</th><td>{{ subject.date_joined|date:"F d, Y" }}</td></tr> | 39 <tr><th>Date Joined</th><td>{{ subject.date_joined|date:"F d, Y" }}</td></tr> |
40 <tr><th>Last Login</th><td>{% forum_date subject.last_login user %}</td></tr> | 40 <tr><th>Last Login</th><td>{% forum_date subject.last_login user %}</td></tr> |