diff gpp/templates/core/birthday_block.html @ 421:e06e866af4f1

Fixing #207; adding a birthday block.
author Brian Neal <bgneal@gmail.com>
date Thu, 21 Apr 2011 01:47:42 +0000
parents
children 6309814cd6f7
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gpp/templates/core/birthday_block.html	Thu Apr 21 01:47:42 2011 +0000
@@ -0,0 +1,16 @@
+{% extends 'side_block.html' %}
+{% load url from future %}
+{% load humanize %}
+{% block block_title %}{{ today|date:"F" }} Birthdays{% 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 }} &ndash; <a href="{% url 'bio-view_profile' username=profile.user.username %}">{{ profile.user.username }}</a></li>
+   {% endfor %}
+   </ul>
+{% else %}
+   <p>No birthdays this month.</p>
+{% endif %}
+{% endblock %}