[damned-lies] validator.w3.org doesn't like empty <ul></ul>



commit 978c0a9f8f2f3fbc350fa471ff0b1789598251fd
Author: Gil Forcada <gforcada gnome org>
Date:   Sat Aug 20 14:07:45 2011 +0200

    validator.w3.org doesn't like empty <ul></ul>

 templates/release_list.html |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/templates/release_list.html b/templates/release_list.html
index 3b309d5..e0681a9 100644
--- a/templates/release_list.html
+++ b/templates/release_list.html
@@ -13,8 +13,10 @@
 <ul class="foot">
 {% for rel in active_releases %}
   {% ifchanged rel.status %}
-    </ul>
-    <ul class="foot">
+    {% if not forloop.first %}
+      </ul>
+      <ul class="foot">
+    {% endif %}
   {% endifchanged %}
   <li>
     <a href="{% url stats.views.release rel.name %}">{% trans rel.description %}</a>
@@ -26,8 +28,10 @@
 <ul class="foot">
 {% for rel in old_releases %}
   {% ifchanged rel.status %}
-    </ul>
-    <ul class="foot">
+    {% if not forloop.first %}
+      </ul>
+      <ul class="foot">
+    {% endif %}
   {% endifchanged %}
   <li>
     <a href="{% url stats.views.release rel.name %}">{% trans rel.description %}</a>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]