changeset 377:59aaba88405e

Trying a tweak to put background colors on posts in topics.
author Brian Neal <bgneal@gmail.com>
date Tue, 08 Mar 2011 03:30:50 +0000
parents 6f963e5e7b03
children a9bb32706aa6
files gpp/templates/forums/display_post.html gpp/templates/forums/topic.html
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gpp/templates/forums/display_post.html	Tue Mar 08 01:16:56 2011 +0000
+++ b/gpp/templates/forums/display_post.html	Tue Mar 08 03:30:50 2011 +0000
@@ -1,7 +1,7 @@
 {% load url from future %}
 {% load avatar_tags %}
 {% load forum_tags %}
-<tr class="forum-post {% cycle 'odd' 'even' %}" id="post-{{ post.id }}">
+<tr class="forum-post {{ rowcolors }}" id="post-{{ post.id }}">
    <td class="forum-post-author">
       <a name="p{{ post.id }}"></a>
       <a href="{% url 'bio-view_profile' username=post.user.username %}" title="View Profile for {{ post.user.username }}"><span class="post-author">{{ post.user.username }}</span></a><br />
--- a/gpp/templates/forums/topic.html	Tue Mar 08 01:16:56 2011 +0000
+++ b/gpp/templates/forums/topic.html	Tue Mar 08 03:30:50 2011 +0000
@@ -29,7 +29,8 @@
 
 <table class="forum-topic" id="forum-topic">
 {% for post in page.object_list %}
-{% include 'forums/display_post.html' %}
+   <!-- {% cycle 'odd' 'even' as rowcolors %} -->
+   {% include 'forums/display_post.html' %}
 {% endfor %}
 </table>
 {{ page_nav }}