X-Git-Url: https://git.0d.be/?p=panikweb.git;a=blobdiff_plain;f=panikweb%2Ftemplates%2Fpanikombo%2Ftopik-cell.html;fp=panikweb%2Ftemplates%2Fpanikombo%2Ftopik-cell.html;h=d9ffe248b796add4a4cc96516bffb77b2f4970fb;hp=0000000000000000000000000000000000000000;hb=4d7a9be82c839071d54634549a6f53bb7effd3a2;hpb=0605dcd8273da1984c6a6304aafdc949ee2c2820 diff --git a/panikweb/templates/panikombo/topik-cell.html b/panikweb/templates/panikombo/topik-cell.html new file mode 100644 index 0000000..d9ffe24 --- /dev/null +++ b/panikweb/templates/panikombo/topik-cell.html @@ -0,0 +1,36 @@ +{% load thumbnail %} +{% if cell.topik %} +
+ + +
+ {% if cell.slug == "large" %} +

{{cell.topik.page.title}}

+ {% else %} +
{{cell.topik.page.title}}
+ {% endif %} +
+ {% if cell.slug == "large" %} + {{cell.text|safe}} + {% else %} + {{cell.text|safe|striptags|truncatewords:75}} + {% endif %} +
+
+
+
+{% endif %}