comparison gpp/templates/core/birthday_block.html @ 534:98f5facc0030

Clean up the birthday block. Get rid of space between name and comma. Get rid of bullets.
author Brian Neal <bgneal@gmail.com>
date Tue, 27 Dec 2011 01:15:27 +0000
parents 3c48a555298d
children
comparison
equal deleted inserted replaced
533:387d46abcb95 534:98f5facc0030
3 {% load bio_tags %} 3 {% load bio_tags %}
4 {% load humanize %} 4 {% load humanize %}
5 {% 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_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 %}
6 {% block block_content %} 6 {% block block_content %}
7 {% if birthdays %} 7 {% if birthdays %}
8 <ul> 8 <ul class="no-bullet">
9 {% for bday in birthdays %} 9 {% for bday in birthdays %}
10 <li> 10 <li>
11 {% if bday.day == today.day %}<strong>{% endif %} 11 {% if bday.day == today.day %}<strong>{% endif %}
12 {{ bday.day|ordinal }} &ndash; 12 {{ bday.day|ordinal }} &ndash;
13 {% for profile in bday.profiles %} 13 {% for profile in bday.profiles %}
14 {% profile_link profile.user.username %}{% if not forloop.last %}, {% endif %} 14 <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 %}
15 {% endfor %} 15 {% endfor %}
16 {% if bday.day == today.day %}</strong>{% endif %} 16 {% if bday.day == today.day %}</strong>{% endif %}
17 </li> 17 </li>
18 {% endfor %} 18 {% endfor %}
19 </ul> 19 </ul>