Set proper classes on tables of contributors
authorMagnus Hagander <magnus@hagander.net>
Sun, 10 Jun 2012 11:20:01 +0000 (13:20 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sun, 10 Jun 2012 11:20:50 +0000 (13:20 +0200)
Should fix the missing rounded corners...

templates/contributors/list.html

index 4f6be52d4db9d951a0a82aeb30015420bdd6641c..e0cd8cffc7ac8b230c8d5d6b47dfa2ea26a39220 100644 (file)
@@ -19,7 +19,7 @@
   {%endif%}
   {%for c in t.contributor_set.all %}
    {%if t.detailed%}
-    <tr>
+    <tr{%if forloop.last%} class="lastrow"{%endif%}>
      <td class="colFirst">{{c.firstname}} {{c.lastname}} ({{c.email|hidemail}})
       {%if c.company %}<br/><a href="{{c.companyurl}}">{{c.company}}</a>{%endif%}
       <br/>{{c.location}}</td>
      </tr>
    {%else%}
     {%if forloop.counter0|divisibleby:"2" %}
-     <tr>
-      <td>{{c.firstname}} {{c.lastname}}{%if c.email%} ({{c.email|hidemail}}){%endif%}</td>
+     <tr{%if forloop.revcounter0 < 2 %} class="lastrow"{%endif%}>
+      <td class="colFirst">{{c.firstname}} {{c.lastname}}{%if c.email%} ({{c.email|hidemail}}){%endif%}</td>
       {%if forloop.last%}
-      <td></td>
+      <td class="colLast"></td>
      </tr>
       {%endif%}
     {%else%}
-      <td>{{c.firstname}} {{c.lastname}}{%if c.email%} ({{c.email|hidemail}}){%endif%}</td>
+      <td class="colLast">{{c.firstname}} {{c.lastname}}{%if c.email%} ({{c.email|hidemail}}){%endif%}</td>
      </tr>
     {%endif%}
    {%endif%}