Mercurial > public > sg101
view gpp/templates/core/birthday_block.html @ 434:ffdeb403ad21
For #211; update the URL in the private messages notification email. Messages no longer have a get_absolute_url() method. Just send people to the main messages index.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 12 May 2011 02:56:13 +0000 |
parents | 6309814cd6f7 |
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 %}