]> git.parisson.com Git - mezzo.git/commitdiff
Event location details template
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Thu, 27 Oct 2016 11:43:51 +0000 (13:43 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Thu, 27 Oct 2016 11:43:51 +0000 (13:43 +0200)
app/templates/agenda/event_location_detail.html

index 7fa0b574a18cd1d93069d311aebf4ee10ae26f11..c37bee05e090c9bb15cd50a6c05dd3ab2395a609 100644 (file)
@@ -1,6 +1,43 @@
-{% extends "agenda/event_location_list.html" %}
+{% extends "pages/page.html" %}
 {% load i18n future mezzanine_tags event_tags keyword_tags disqus_tags %}
 
-{% block main %}
-    {% include "agenda/includes/event_location.html" %}
+{% block meta_title %}{{ location.title }}{% if location.room %} - {{ location.room }}{% endif %}{% endblock %}
+
+{% block page_class %}
+    location
+{% endblock %}
+
+{% block breadcrumb_menu %}
+    {{ block.super }}
+    <li class="breadcrumb__item active">{{ location.title }}{% if location.room %} - {{ location.room }}{% endif %}</li>
+{% endblock %}
+
+{% block page_title %}
+    {% editable location.title %}
+        <h1 class="dotted">{{ location.title }}{% if location.room %} - {{ location.room }}{% endif %}</h1>
+    {% endeditable %}
+{% endblock %}
+
+
+
+{% block page_content %}
+    {% if location.description %}
+        {{ location.description|safe }}
+    {% endif %}
+    <p><a href="{{ location.link }}" target="_blank">{{ location.link }}</a></p>
+
+{% endblock %}
+
+{% block page_sidebar %}
+    <div class="page__meta" data-sticky data-sticky-parent="row" data-sticky-offset="100" data-sticky-detach-at="971">
+        <p class="page__meta-text">
+            {{ location.address }}
+        </p>
+        <a href="{{ location|google_nav_url }}" target="_blank" class="location__map">
+          {% google_static_map location 900 300 15 %}
+        </a>
+        <p class="page__meta-text">
+            <a class="button button--block" href="{% url "event_list_location" location.slug %}" class="sidebar__entry">{% trans "Viewing events for the location" %}</a>
+        </p>
+    </div>
 {% endblock %}