Mercurial > public > sg101
annotate gpp/templates/core/birthday_block.html @ 440:ac9217eef610
Added total vote information to the poll templates. Cache the total votes in the model instance.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 21 May 2011 20:35:02 +0000 |
parents | 6309814cd6f7 |
children | a0847158cf72 |
rev | line source |
---|---|
bgneal@421 | 1 {% extends 'side_block.html' %} |
bgneal@421 | 2 {% load url from future %} |
bgneal@421 | 3 {% load humanize %} |
bgneal@422 | 4 {% 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 %} |
bgneal@421 | 5 {% block block_content %} |
bgneal@421 | 6 {% if profiles %} |
bgneal@421 | 7 <ul> |
bgneal@421 | 8 {% for profile in profiles %} |
bgneal@421 | 9 <li>{{ profile.birthday.day|ordinal }} – <a href="{% url 'bio-view_profile' username=profile.user.username %}">{{ profile.user.username }}</a></li> |
bgneal@421 | 10 {% endfor %} |
bgneal@421 | 11 </ul> |
bgneal@421 | 12 {% else %} |
bgneal@421 | 13 <p>No birthdays this month.</p> |
bgneal@421 | 14 {% endif %} |
bgneal@421 | 15 {% endblock %} |