]> git.parisson.com Git - mezzo.git/commitdiff
CustomPage, DepartmentPage, TeamPage: add logo at bottom of the page
authorEmilie <zawadzki@ircam.fr>
Thu, 15 Sep 2016 10:27:24 +0000 (12:27 +0200)
committerEmilie <zawadzki@ircam.fr>
Thu, 15 Sep 2016 10:27:24 +0000 (12:27 +0200)
app/templates/core/inc/logo.html [new file with mode: 0644]
app/templates/pages/custompage.html
app/templates/pages/departmentpage.html
app/templates/pages/page.html
app/templates/pages/teampage.html

diff --git a/app/templates/core/inc/logo.html b/app/templates/core/inc/logo.html
new file mode 100644 (file)
index 0000000..9baae88
--- /dev/null
@@ -0,0 +1,8 @@
+{% load mezzanine_tags %}
+{% if images %}
+<ul>
+  {% for image in images %}
+    <li><img src="{{ MEDIA_URL }}{% thumbnail image.file 100 100 %}"></li>
+  {% endfor %}
+</ul>
+{% endif %}
index d56a6ef7180efcfb9c8ab4f731bbf14139c52155..6341e50f5c21a279038fd7e51b19ce56d1db9a52 100644 (file)
@@ -95,3 +95,9 @@
      {% include "core/inc/block.html" %}
   {% endwith %}
 {% endblock %}
+
+{% block logo %}
+  {% with page.custompage.images.all|get_type:'logo' as images %}
+    {% include 'core/inc/logo.html' %}
+  {% endwith %}
+{% endblock %}
index ee2a69268e71c2a14e716f7b220c04a02ffe714d..18698fd4c4c347493d643d87047762326ff22bfe 100644 (file)
     {% endif %}
 
 {% endblock %}
+
+{% block logo %}
+  {% with page.departmentpage.images.all|get_type:'logo' as images %}
+    {% include 'core/inc/logo.html' %}
+  {% endwith %}
+{% endblock %}
index a1c57863acaf3d7a61256b6dcf1632f86e27a401..06a6ccf294b31fe639e87fc64d34b23418bfd6b0 100644 (file)
@@ -73,5 +73,7 @@
         {% endblock %}
         {% block related_project %}
         {% endblock %}
+        {% block logo %}
+        {% endblock %}
     </div>
 {% endblock %}
index 7560e1ba832a23bb0a26595dde7e04683b72d19d..2a8e2fba5b03556c52094559d6d633a948e09379 100644 (file)
         {% include 'projects/project_list.html' %}
     {% endwith %}
   {% endif %}
+{% endblock %}
 
+{% block logo %}
+  {% with page.teampage.images.all|get_type:'logo' as images %}
+    {% include 'core/inc/logo.html' %}
+  {% endwith %}
 {% endblock %}