templates: restore topik_menu_item.html
authorFrédéric Péters <fpeters@0d.be>
Thu, 11 Jun 2020 10:01:29 +0000 (12:01 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 11 Jun 2020 10:01:29 +0000 (12:01 +0200)
panikweb_templates/templates/combo/topik_menu_item.html [new file with mode: 0644]

diff --git a/panikweb_templates/templates/combo/topik_menu_item.html b/panikweb_templates/templates/combo/topik_menu_item.html
new file mode 100644 (file)
index 0000000..55a7028
--- /dev/null
@@ -0,0 +1,24 @@
+{% load combo paniktags thumbnail %}
+<li class="item">
+  <div class="topik inline cf">
+    <a class="block cf topik-link" href="{{page.get_online_url}}">
+    <div class="logo">
+        {% if page.picture %}
+          {% thumbnail page.picture "60x60" crop="50% 25%" as im %}
+          <img alt="" width="60" height="60" src="{{im.url}}"/>
+          {% endthumbnail %}
+        {% else %}
+          <img alt="" src="/static/img/sound.png" width="60" height="60">
+        {% endif %}
+    </div>
+    <div class="content">
+      <div class="title">
+        <h5 class="title">{{page.title}}</h5>
+      </div>
+      <div class="smooth metas">
+        <span class="categories">{{category}}</span>
+      </div>
+    </div>
+    </a>
+  </div>
+</li>