refactored footer html into its own template
authordurandn
Fri, 16 Sep 2016 16:19:01 +0200
changeset 186 5dcc09a350a6
parent 185 43a230dd2cca
child 187 456d13962c0d
refactored footer html into its own template
src/iconolab/templates/iconolab_base.html
src/iconolab/templates/partials/footer.html
--- a/src/iconolab/templates/iconolab_base.html	Fri Sep 16 14:00:41 2016 +0200
+++ b/src/iconolab/templates/iconolab_base.html	Fri Sep 16 16:19:01 2016 +0200
@@ -42,25 +42,6 @@
 	    {% endblock %}
 	</body>
     <footer>
-      <div class="container">
-      <hr>
-        <div class="pull-left footer-info">
-          <h4><small>Version {% version %}</small></h4>
-        </div>
-        <div class="pull-right partners-icons">
-          <a href="http://www.iri.centrepompidou.fr"><img src="{% static 'iconolab/img/logo_IRI_footer.png' %}"></a>
-          &nbsp;&nbsp;
-          <a href="http://www.culturecommunication.gouv.fr/"><img src="{% static 'iconolab/img/logo_mcc_footer.png' %}"></a>
-        </div>
-        <div class="pull-right footer-link">
-          <h4><small><a href="{% url 'iconolab_legals' %}">Mentions légales</a></small></h4>
-        </div>
-        <div class="pull-right footer-link">
-          <h4><small><a href="{% url 'iconolab_credits' %}">Crédits</a></small></h4>
-        </div>
-        <div class="pull-right footer-link">
-          <h4><small><a href="{% url 'iconolab_charter' %}">Chartre de contribution</a></small></h4>
-        </div>
-      </div>
+        {% include "partials/footer.html" %}
     </footer>
 </html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/iconolab/templates/partials/footer.html	Fri Sep 16 16:19:01 2016 +0200
@@ -0,0 +1,26 @@
+{% load staticfiles %}
+{% load iconolab_tags %}
+
+<div class="container">
+<hr>
+  <div class="pull-left footer-info">
+    <h4><small>Version {% version %}</small></h4>
+  </div>
+  <div class="pull-right partners-icons">
+    <a href="http://www.iri.centrepompidou.fr"><img src="{% static 'iconolab/img/logo_IRI_footer.png' %}"></a>
+    &nbsp;&nbsp;
+    <a href="http://www.culturecommunication.gouv.fr/"><img src="{% static 'iconolab/img/logo_mcc_footer.png' %}"></a>
+  </div>
+  <div class="pull-right footer-link">
+    <h4><small><a href="{% url 'iconolab_legals' %}">Mentions légales</a></small></h4>
+  </div>
+  <div class="pull-right footer-link">
+    <h4><small><a href="{% url 'iconolab_credits' %}">Crédits</a></small></h4>
+  </div>
+  <div class="pull-right footer-link">
+    <h4><small><a href="{% url 'iconolab_charter' %}">Chartre de contribution</a></small></h4>
+  </div>
+  <div class="pull-right footer-link">
+    <h4><small><a href="{% url 'iconolab_help' %}">Glossaire</a></small></h4>
+  </div>
+</div>
\ No newline at end of file