comparison gpp/templates/core/birthday_block.html @ 421:e06e866af4f1

Fixing #207; adding a birthday block.
author Brian Neal <bgneal@gmail.com>
date Thu, 21 Apr 2011 01:47:42 +0000
parents
children 6309814cd6f7
comparison
equal deleted inserted replaced
420:c06d836c8b84 421:e06e866af4f1
1 {% extends 'side_block.html' %}
2 {% load url from future %}
3 {% load humanize %}
4 {% block block_title %}{{ today|date:"F" }} Birthdays{% endblock %}
5 {% block block_content %}
6 {% if profiles %}
7 <div class="centeredImage"><img src="{{ STATIC_URL }}icons/cake.png" alt="Cake" /></div>
8 <ul>
9 {% for profile in profiles %}
10 <li>{{ profile.birthday.day|ordinal }} &ndash; <a href="{% url 'bio-view_profile' username=profile.user.username %}">{{ profile.user.username }}</a></li>
11 {% endfor %}
12 </ul>
13 {% else %}
14 <p>No birthdays this month.</p>
15 {% endif %}
16 {% endblock %}