Mercurial > public > sg101
comparison gpp/templates/bio/members.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 | 88b2b9cb8c1f |
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 {% block title %}Member List{% endblock %} | 4 {% block title %}Member List{% endblock %} |
5 {% block bio_css %} | 5 {% block bio_css %} |
6 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/tab-nav.css" /> | 6 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/tab-nav.css" /> |
7 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pagination.css" /> | 7 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pagination.css" /> |
8 {% endblock %} | 8 {% endblock %} |
32 <th>Date Joined</th> | 32 <th>Date Joined</th> |
33 <th>Contact</th> | 33 <th>Contact</th> |
34 </tr> | 34 </tr> |
35 {% for u in page.object_list %} | 35 {% for u in page.object_list %} |
36 <tr class="{% cycle 'even' 'odd' %}"> | 36 <tr class="{% cycle 'even' 'odd' %}"> |
37 <td><a href="{% url 'bio-view_profile' username=u.username %}">{% avatar u %}</a></td> | 37 <td>{% avatar u %}</td> |
38 <td><a href="{% url 'bio-view_profile' username=u.username %}" title="View profile for {{ u.username }}">{{ u.username }}</a></td> | 38 <td>{% profile_link u.username %}</td> |
39 <td>{{ u.get_full_name }}</td> | 39 <td>{{ u.get_full_name }}</td> |
40 <td>{{ u.user_profile.location }}</td> | 40 <td>{{ u.user_profile.location }}</td> |
41 <td>{{ u.date_joined|date:"M. d, Y" }}</td> | 41 <td>{{ u.date_joined|date:"M. d, Y" }}</td> |
42 <td> | 42 <td> |
43 {% ifnotequal user u %}<a href="{% url 'messages-compose_to' u.username %}"> | 43 {% ifnotequal user u %}<a href="{% url 'messages-compose_to' u.username %}"> |