Mercurial > public > sg101
view gpp/templates/core/birthday_block.html @ 485:7c69b1449d7a
For #233, make sure og:url and og:image are fully qualified (http://).
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 18 Oct 2011 00:14:34 +0000 |
parents | a0847158cf72 |
children | 3c48a555298d |
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 birthdays %} <ul> {% for bday in birthdays %} <li> {% if bday.day == today.day %}<strong>{% endif %} {{ bday.day|ordinal }} – {% for profile in bday.profiles %} <a href="{% url 'bio-view_profile' username=profile.user.username %}">{{ profile.user.username }}</a>{% if not forloop.last %}, {% endif %} {% endfor %} {% if bday.day == today.day %}</strong>{% endif %} </li> {% endfor %} </ul> {% else %} <p>No birthdays this month.</p> {% endif %} {% endblock %}