Locatizations.
[wolnelektury.git] / src / catalogue / templates / catalogue / tag_catalogue.html
index 5f7e61b..2d01053 100644 (file)
@@ -1,22 +1,45 @@
-{% extends "base/base.html" %}
+{% extends 'base.html' %}
 {% load i18n %}
-{% load plain_list from catalogue_tags %}
-{% load ssi_include from ssify %}
+{% load thumbnail %}
 
-{% block titleextra %}{{ title }}{% endblock %}
 
-{% block bodyid %}tag-catalogue{% endblock %}
+{% block settings %}
+{% endblock %}
+
+{% block breadcrumbs %}
+  <span>{{ whole_category }}</span>
+{% endblock %}
+
+
+{% block main %}
+  <div class="l-section">
+    <div class="l-author__header">
+      <h1>{{ whole_category }}</h1>
+    </div>
+  </div>
+
+  <div class="l-search-bar">
+    <div class="l-search-bar__input">
+      <i class="icon icon-filter"></i>
+      <input type="text" placeholder="{% trans 'filtry, tytuł' %}" class="quick-filter" data-for="tag-list">
+    </div>
+  </div>
 
-{% block body %}
-  <h1>{{ title|title }} {% trans "on Wolne Lektury" %}</h1>
 
-  {% for tag in best %}
-    <a class="tag-box" href="{{ tag.get_absolute_url }}">
-      {% ssi_include "catalogue_tag_box" pk=tag.pk %}
-    </a>
-  {% endfor %}
+  <div class="l-section l-taglist">
+    <ul id="tag-list">
+      {% for tag in tags %}
+        <li>
+          {% if tag.photo %}
+            {% thumbnail tag.photo '40x40' crop='top' as thumb %}
+            <img src="{{ thumb.url }}" class="c-avatar">
+            {% endthumbnail %}
+          {% endif %}
+          <a class="s" href="{{ tag.get_absolute_url }}">{{ tag }} ({{ tag.count }})</a>
+        </li>
+      {% endfor %}
+    </ul>
+ </div>
 
-  <h2>{{ whole_category }}</h2>
 
-  {% plain_list tags %}
 {% endblock %}