Mercurial > public > sg101
changeset 422:6309814cd6f7
Tweaking birthday block
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 21 Apr 2011 02:23:34 +0000 |
parents | e06e866af4f1 |
children | 3fe60148f75c |
files | gpp/templates/base.html gpp/templates/core/birthday_block.html static/css/base.css |
diffstat | 3 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gpp/templates/base.html Thu Apr 21 01:47:42 2011 +0000 +++ b/gpp/templates/base.html Thu Apr 21 02:23:34 2011 +0000 @@ -85,9 +85,9 @@ {% cache 3600 poll_block %} {% latest_poll_block %} {% endcache %} - {# cache 3600 birthday_block #} + {% cache 3600 birthday_block %} {% birthday_block %} - {# endcache #} + {% endcache %} {% include 'core/mp3comp_block.html' %} </div>
--- a/gpp/templates/core/birthday_block.html Thu Apr 21 01:47:42 2011 +0000 +++ b/gpp/templates/core/birthday_block.html Thu Apr 21 02:23:34 2011 +0000 @@ -1,10 +1,9 @@ {% extends 'side_block.html' %} {% load url from future %} {% load humanize %} -{% block block_title %}{{ today|date:"F" }} Birthdays{% endblock %} +{% 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 profiles %} - <div class="centeredImage"><img src="{{ STATIC_URL }}icons/cake.png" alt="Cake" /></div> <ul> {% for profile in profiles %} <li>{{ profile.birthday.day|ordinal }} – <a href="{% url 'bio-view_profile' username=profile.user.username %}">{{ profile.user.username }}</a></li>