Mercurial > public > sg101
comparison gpp/templates/core/birthday_block.html @ 444:a0847158cf72
Tweaking the birthday block; now display a list of people for each day and bold the current day.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 04 Jun 2011 19:10:34 +0000 |
parents | 6309814cd6f7 |
children | 3c48a555298d |
comparison
equal
deleted
inserted
replaced
443:a01596ab17cf | 444:a0847158cf72 |
---|---|
1 {% extends 'side_block.html' %} | 1 {% extends 'side_block.html' %} |
2 {% load url from future %} | 2 {% load url from future %} |
3 {% load humanize %} | 3 {% load humanize %} |
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 %} | 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 %} |
5 {% block block_content %} | 5 {% block block_content %} |
6 {% if profiles %} | 6 {% if birthdays %} |
7 <ul> | 7 <ul> |
8 {% for profile in profiles %} | 8 {% for bday in birthdays %} |
9 <li>{{ profile.birthday.day|ordinal }} – <a href="{% url 'bio-view_profile' username=profile.user.username %}">{{ profile.user.username }}</a></li> | 9 <li> |
10 {% if bday.day == today.day %}<strong>{% endif %} | |
11 {{ bday.day|ordinal }} – | |
12 {% for profile in bday.profiles %} | |
13 <a href="{% url 'bio-view_profile' username=profile.user.username %}">{{ profile.user.username }}</a>{% if not forloop.last %}, {% endif %} | |
14 {% endfor %} | |
15 {% if bday.day == today.day %}</strong>{% endif %} | |
16 </li> | |
10 {% endfor %} | 17 {% endfor %} |
11 </ul> | 18 </ul> |
12 {% else %} | 19 {% else %} |
13 <p>No birthdays this month.</p> | 20 <p>No birthdays this month.</p> |
14 {% endif %} | 21 {% endif %} |