Mercurial > public > sg101
view gpp/templates/core/birthday_block.html @ 544:c092efc9ce71
Initial version of the phantombrigade application.
It has one view to query the TS3 server and output a JSON representation
of the status.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 12 Jan 2012 21:42:01 -0600 |
parents | 98f5facc0030 |
children |
line wrap: on
line source
{% extends 'side_block.html' %} {% load url from future %} {% load bio_tags %} {% 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 class="no-bullet"> {% 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' profile.user.username %}" title="View profile for {{ 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 %}