]> git.parisson.com Git - mezzo.git/commitdiff
add iframe template
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 11 Apr 2016 09:00:59 +0000 (11:00 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 11 Apr 2016 09:00:59 +0000 (11:00 +0200)
app/sandbox/local_settings.py
app/templates/agenda/event_detail.html
app/templates/agenda/event_iframe.html [new file with mode: 0644]

index b36a4e4352f6d476258416b13f7fbb7b305641d7..a893b22acba20074c389f8fbc414c672332742c7 100644 (file)
@@ -101,5 +101,6 @@ EVENT_GOOGLE_MAPS_DOMAIN = 'maps.google.fr'
 EVENT_PER_PAGE = 50
 EVENT_USE_FEATURED_IMAGE = True
 EVENT_SHOP_URL = 'http://eve.ircam.fr/manifeste.php/manifestation/'
+EVENT_PASS_URL = 'http://eve.ircam.fr/manifeste.php/pass/'
 
 TINYMCE_SETUP_JS = "/static/js/tinymce_setup.js"
index 73c8ceb983380775b757eee5e51be7d5703d87ac..f60b1d25affb6e2e3164d4d10b0db35c1373d022 100644 (file)
 </div>
 {% endif %}
 
-{% if event.videos.all %}}
+{% if event.videos.all %}
 <h3 class="section__title">{% trans "Videos" %}</h3>
 <div class="row">
     {% for video in event.videos.all %}
 {% if event.allow_comments %}{% comments_for event %}{% endif %}
 {% endblock %}
 
+{% block ical %}
 <a href='{% icalendar_url %}' target="_blank" class="small push-ical">{% trans "Subscribe to all events in" %} Google Calendar/Outlook/iCal</a>
+{% endblock %}
 
 {% endblock %}
diff --git a/app/templates/agenda/event_iframe.html b/app/templates/agenda/event_iframe.html
new file mode 100644 (file)
index 0000000..769f91d
--- /dev/null
@@ -0,0 +1,14 @@
+{% extends "agenda/event_detail.html" %}
+{% load mezzanine_tags comment_tags keyword_tags rating_tags i18n future disqus_tags event_tags festival_tags %}
+
+{% block title %}
+    {{ title }}
+{% endblock %}
+
+{% block main %}
+
+{% block event_detail_content %}
+<iframe width="100%" height="820px" scrolling="auto" src="http://eve.ircam.fr/manifeste.php/card" frameborder="0" allowfullscreen=""></iframe>
+{% endblock %}
+
+{% endblock %}