comparison gpp/templates/donations/index.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 daa2916f5b34
children
comparison
equal deleted inserted replaced
491:7dbdbb08e68c 492:3c48a555298d
1 {% extends 'base.html' %} 1 {% extends 'base.html' %}
2 {% load url from future %} 2 {% load url from future %}
3 {% load bio_tags %}
3 {% block title %}Donations{% endblock %} 4 {% block title %}Donations{% endblock %}
4 {% block content %} 5 {% block content %}
5 <h2>Donations</h2> 6 <h2>Donations</h2>
6 <p> 7 <p>
7 SurfGuitar101.com is a member supported website. We don't display ads or have other forms of 8 SurfGuitar101.com is a member supported website. We don't display ads or have other forms of
32 <li> 33 <li>
33 {% if donation.is_anonymous %} 34 {% if donation.is_anonymous %}
34 {{ anonymous }} 35 {{ anonymous }}
35 {% else %} 36 {% else %}
36 {% if donation.user %} 37 {% if donation.user %}
37 <a href="{% url 'bio-view_profile' donation.user.username %}">{{ donation.user.username }}</a> 38 {% profile_link donation.user.username %}
38 {% else %} 39 {% else %}
39 {{ donation.donor }} 40 {{ donation.donor }}
40 {% endif %} 41 {% endif %}
41 {% endif %} 42 {% endif %}
42 </li> 43 </li>