changeset 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 387d46abcb95
children 4021ea1045f7
files gpp/templates/core/birthday_block.html static/css/base.css
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gpp/templates/core/birthday_block.html	Mon Dec 26 23:05:29 2011 +0000
+++ b/gpp/templates/core/birthday_block.html	Tue Dec 27 01:15:27 2011 +0000
@@ -5,13 +5,13 @@
 {% 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 birthdays %}
-   <ul>
+   <ul class="no-bullet">
    {% for bday in birthdays %}
       <li>
          {% if bday.day == today.day %}<strong>{% endif %}
          {{ bday.day|ordinal }} &ndash;
          {% for profile in bday.profiles %}
-         {% profile_link profile.user.username %}{% if not forloop.last %}, {% endif %}
+         <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 %}
          {% endfor %}
          {% if bday.day == today.day %}</strong>{% endif %}
       </li>
--- a/static/css/base.css	Mon Dec 26 23:05:29 2011 +0000
+++ b/static/css/base.css	Tue Dec 27 01:15:27 2011 +0000
@@ -434,6 +434,10 @@
    padding: 0.5em;
 }
 
+ul.no-bullet {
+ list-style: none;
+ padding-left: 0.5em;
+}
 ul.no-bullet-inline-block {
  list-style: none;
 }