]> git.0d.be Git - panikweb.git/commitdiff
templates: add back titles to galleries
authorFrédéric Péters <fpeters@0d.be>
Thu, 11 Jun 2020 09:58:38 +0000 (11:58 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 11 Jun 2020 09:58:38 +0000 (11:58 +0200)
panikweb_templates/templates/combo/gallerycell.html

index 6be3c9f22a8b134cd531da44c814602951689594..1a420da77ea22e346d8eccdad80961c0e2053ed1 100644 (file)
@@ -1,4 +1,7 @@
 {% load thumbnail %}
 {% load thumbnail %}
+{% if cell.title %}
+<h2>{{ cell.title }}</h2>
+{% endif %}
 <div class="gallery" id="gallery-{{cell.id}}">
 {% for image in cell.image_set.all %}
   {% if forloop.first %}
 <div class="gallery" id="gallery-{{cell.id}}">
 {% for image in cell.image_set.all %}
   {% if forloop.first %}