Mercurial > public > sg101
annotate 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 |
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 %} |