src/egonomy/templates/partial/collection_in_list.html
changeset 204 1d22c4e915a9
parent 159 b98558f8d2c1
child 218 87fd3589b65a
--- a/src/egonomy/templates/partial/collection_in_list.html	Fri Jun 28 12:46:42 2013 +0200
+++ b/src/egonomy/templates/partial/collection_in_list.html	Fri Jun 28 15:31:47 2013 +0200
@@ -10,16 +10,20 @@
     </ul>
 </div>
 <a href="{% url 'view_collection' collection_pk=col.pk %}">
+{% with items=col.items.all %}
 <div class="top clearfix">
-    <img src="{% static 'egonomy/img/empty.gif' %}" width="113" height="113" class="placeholder" />
-    <img src="{% static 'egonomy/img/empty.gif' %}" width="113" height="113" class="placeholder" />
+  {% for item in items|slice:":2" %}
+    {% include 'partial/little_square_item_for_collection.html' %}
+  {% endfor %}
 </div>
 <div class="mid">
     <h3>{{ col.title|default:_("No title") }}</h3>
     <p>{% trans "by" %} {{ col.author }}</p>
 </div>
 <div class="bot clearfix">
-    <img src="{% static 'egonomy/img/empty.gif' %}" width="113" height="113" class="placeholder" />
-    <img src="{% static 'egonomy/img/empty.gif' %}" width="113" height="113" class="placeholder" />
+  {% for item in items|slice:"2:4" %}
+    {% include 'partial/little_square_item_for_collection.html' %}
+  {% endfor %}
 </div>
+{% endwith %}
 </a>
\ No newline at end of file