Mercurial > public > sg101
view 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 |
line wrap: on
line source
{% extends 'side_block.html' %} {% load url from future %} {% load humanize %} {% block block_title %}{{ today|date:"F" }} Birthdays{% endblock %} {% block block_content %} {% if profiles %} <div class="centeredImage"><img src="{{ STATIC_URL }}icons/cake.png" alt="Cake" /></div> <ul> {% for profile in profiles %} <li>{{ profile.birthday.day|ordinal }} – <a href="{% url 'bio-view_profile' username=profile.user.username %}">{{ profile.user.username }}</a></li> {% endfor %} </ul> {% else %} <p>No birthdays this month.</p> {% endif %} {% endblock %}