]> git.parisson.com Git - mezzo.git/commitdiff
Add Copyright (partially fix #372)
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 8 Nov 2016 16:39:54 +0000 (17:39 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 8 Nov 2016 16:39:54 +0000 (17:39 +0100)
app/organization/core/templatetags/organization_tags.py
app/templates/pages/menus/footer_horizontal.html

index 6b4803599f5e4ef4c1785e0f72c01b3949db3c70..0653b547b59a380fac5712dd7b107a471e900e0e 100644 (file)
@@ -162,3 +162,7 @@ def date_year_higher_than(date, years):
     diff = date - datetime.date.today()
     print(diff.days)
     return diff.days > years*365
+
+@register.simple_tag
+def current_year():
+    return datetime.datetime.now().strftime("%Y")
index b80c63dd000344b166f5db7337201142ee86ae83..90555341335cf00d1f148d73f2d514a58ae2ed2c 100644 (file)
@@ -1,4 +1,4 @@
-{% load i18n pages_tags staticfiles %}
+{% load i18n pages_tags staticfiles organization_tags %}
 {% get_language_info_list for LANGUAGES as languages %}
 
 {% spaceless %}
@@ -22,4 +22,6 @@
         {% endif %}
     {% endfor %}
 {% endif %}
+
+Copyright &copy; {% current_year %} IRCAM
 {% endspaceless %}