add "large topik" template
authorFrédéric Péters <fpeters@0d.be>
Thu, 11 Jun 2020 09:02:49 +0000 (11:02 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 11 Jun 2020 09:02:49 +0000 (11:02 +0200)
panikweb_templates/templates/combo/cells/topik-large/link-cell.html [new file with mode: 0644]

diff --git a/panikweb_templates/templates/combo/cells/topik-large/link-cell.html b/panikweb_templates/templates/combo/cells/topik-large/link-cell.html
new file mode 100644 (file)
index 0000000..482ace7
--- /dev/null
@@ -0,0 +1,18 @@
+{% load thumbnail %}
+<div class="topikcellcontent topik-{{cell.link_page.slug}}">
+<a class="block cf" href="{{url}}">
+<span class="logo">
+{% thumbnail cell.link_page.picture "800x450" crop="50% 25%" as im %}
+<div class="logo">
+<img class="normal" src="{{im.url}}"/>
+</div>
+{% endthumbnail %}
+</span>
+<div>
+  <h2>{{title}}</h2>
+  <div class="description">
+    {{cell.link_page.description|safe|striptags}}
+  </div>
+</div>
+</a>
+</div>