--- /dev/null
+# -*- coding: utf-8 -*-
+from mezzanine.pages.models import Page
+from django import template
+
+register = template.Library()
+
+@register.simple_tag
+def edito():
+ qs = Page.objects.filter(title="Edito")
+ if qs:
+ return qs[0].content
+ else:
+ return ''
{% endif %}
{% block event_calendar %}
-<p>
- <a href='{% icalendar_url %}' target="_blank" class="">
- Subscribe to all events in Google Calendar/Outlook/iCal
- </a>
-</p>
+<p><a href='{% icalendar_url %}' target="_blank" class="">
+ {% trans "Subscribe to all events in" %} Google Calendar/Outlook/iCal
+</a></p>
{% endblock %}
{% for event in events.object_list %}
<!doctype html>
<html lang="{{ LANGUAGE_CODE }}"{% if LANGUAGE_BIDI %} dir="rtl"{% endif %}>
-{% load pages_tags mezzanine_tags i18n staticfiles keyword_tags %}
+{% load pages_tags mezzanine_tags i18n staticfiles keyword_tags event_tags %}
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<div class="site__content__header">
<h2 class="page__title">{% block title %}{% endblock %}</h2>
</div>
+ {% block event_calendar %}
+ <p><a href='{% icalendar_url %}' target="_blank" class="">
+ {% trans "Subscribe to all events in" %} Google Calendar/Outlook/iCal
+ </a></p>
+ {% endblock %}
<main class="main" role="main">
{% block main %}{% endblock %}
</main>