Cleanup
[wolnelektury.git] / src / catalogue / templates / catalogue / collections.html
index 1c69872..8fda39d 100644 (file)
@@ -1,22 +1,42 @@
-{% extends "base.html" %}
-{% load i18n %}
-{% load catalogue_tags %}
-{% load ssi_include from ssify %}
+{% extends 'base.html' %}
 
-{% block titleextra %}{% trans "Collections" %}{% endblock %}
 
-{% block bodyid %}collections{% endblock %}
-
-{% block body %}
-    <h1>{% trans "Collections" %}</h1>
-
-    {% for obj in best %}
-        {% ssi_include 'catalogue_collection_box' pk=obj.pk %}
-    {% endfor %}
+{% block breadcrumbs %}
+  <a href="/katalog/"><span>Katalog</span></a>
+{% endblock %}
 
-    <h2>{% trans "All collections" %}</h2>
-    {% plain_list objects %}
 
+{% block main %}
+
+  <div class="l-section">
+    <div class="l-author__header">
+      <h1>Kolekcje</h1>
+    </div>
+  </div>
+
+  <div class="l-search-bar">
+    <div class="l-search-bar__input">
+      <i class="icon icon-filter"></i>
+      <input type="text" placeholder="filtry, tytuł" class="quick-filter" data-for="collections">
+    </div>
+  </div>
+
+  <div id="collections">
+  {% for collection in objects %}
+    <section class="l-section">
+      <div class="l-collections -js-collections">
+        <div class="l-collections__header">
+          <h3><a class="s" href="{{ collection.get_absolute_url }}">{{ collection.title }}</a></h3>
+        </div>
+        <div class="l-books">
+          {% for book in collection.get_5_books %}
+            {% include 'catalogue/book_box.html' %}
+          {% endfor %}
+        </div>
+      </div>
+    </section>
+  {% endfor %}
+  </div>
 
 
 {% endblock %}