annotate 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
rev   line source
bgneal@421 1 {% extends 'side_block.html' %}
bgneal@421 2 {% load url from future %}
bgneal@421 3 {% load humanize %}
bgneal@421 4 {% block block_title %}{{ today|date:"F" }} Birthdays{% endblock %}
bgneal@421 5 {% block block_content %}
bgneal@421 6 {% if profiles %}
bgneal@421 7 <div class="centeredImage"><img src="{{ STATIC_URL }}icons/cake.png" alt="Cake" /></div>
bgneal@421 8 <ul>
bgneal@421 9 {% for profile in profiles %}
bgneal@421 10 <li>{{ profile.birthday.day|ordinal }} &ndash; <a href="{% url 'bio-view_profile' username=profile.user.username %}">{{ profile.user.username }}</a></li>
bgneal@421 11 {% endfor %}
bgneal@421 12 </ul>
bgneal@421 13 {% else %}
bgneal@421 14 <p>No birthdays this month.</p>
bgneal@421 15 {% endif %}
bgneal@421 16 {% endblock %}