Commits

Kai Diefenbach  committed 5557604

Category view: display cols and rows

  • Participants
  • Parent commits 73ffd78

Comments (0)

Files changed (1)

File lfstheme/templates/lfs/catalog/categories/category/default.html

 </h1>
 
 <div id="categories">
-    {% for row in categories %}
-        {% for category in row %}
-            <div class="category-row">
-                <h2 class="first-heading">{{ category.name }}</h2>
-                <div class="category-image">
-                    <a href="{% url lfs_category category.slug %}">
-                        {% if category.image %}
-                            <img src="{{category.image.url_100x100}}"
-                                 alt="{{category.name}}" />
-                        {% endif %}
-                    </a>
-                </div>
-                <div class="category-description">
-                    {{ category.short_description|safe }}
-                </div>
+    <table class="lfs-default">
+        {% for row in categories %}
+            <tr>
+                {% for category in row %}                
+                    <td class="category-row">
+                        <h2 class="first-heading">{{ category.name }}</h2>
+                        <div class="category-image">
+                            <a href="{% url lfs_category category.slug %}">
+                                {% if category.image %}
+                                    <img src="{{category.image.url_100x100}}"
+                                         alt="{{category.name}}" />
+                                {% endif %}
+                            </a>
+                        </div>
+                        <div class="category-description">
+                            {{ category.short_description|safe }}
+                        </div>
 
-                <div class="clear details-button">
-                    <a class="button emphasized"
-                       href="{% url lfs_category category.slug %}">{% trans 'Details' %}
-                    </a>
-                </div>
+                        <div class="clear details-button">
+                            <a class="button emphasized"
+                               href="{% url lfs_category category.slug %}">{% trans 'Details' %}
+                            </a>
+                        </div>
 
-                <hr>
-            </div>
+                        <hr>
+                    </td>
+                {% endfor %}
+            </tr>
         {% endfor %}
-    {% endfor %}
+    </table>    
 </div>