Mercurial > public > sg101
view gpp/templates/core/birthday_block.html @ 422:6309814cd6f7
Tweaking birthday block
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 21 Apr 2011 02:23:34 +0000 |
parents | e06e866af4f1 |
children | a0847158cf72 |
line wrap: on
line source
{% extends 'side_block.html' %} {% load url from future %} {% load humanize %} {% block block_title %}<img src="{{ STATIC_URL }}icons/cake.png" alt="Cake" class="middle" /> {{ today|date:"F" }} Birthdays <img src="{{ STATIC_URL }}icons/cake.png" alt="Cake" class="middle" /> {% endblock %} {% block block_content %} {% if profiles %} <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 %}