From: Jérémy Fabre Date: Wed, 28 Sep 2016 11:42:30 +0000 (+0200) Subject: Event details first implementation X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a6d774896a7993276dc13c5d059ab177a7d1d50b;p=mezzo.git Event details first implementation --- diff --git a/app/static/src/sass/modules/_page.scss b/app/static/src/sass/modules/_page.scss index 9eb7eb19..1613e6bd 100644 --- a/app/static/src/sass/modules/_page.scss +++ b/app/static/src/sass/modules/_page.scss @@ -50,7 +50,7 @@ $module: ".page"; &__meta-title { - @include font-size(l); + @include font-size(m); @include line-height(1); @include typeface(serif); font-weight: weight(heavy); diff --git a/app/static/src/sass/modules/_share-links.scss b/app/static/src/sass/modules/_share-links.scss index 7b3140c8..5df9ec5a 100644 --- a/app/static/src/sass/modules/_share-links.scss +++ b/app/static/src/sass/modules/_share-links.scss @@ -9,7 +9,7 @@ $module: ".share-links"; &__item { display: inline-block; - font-size: 1.5rem; + font-size: 1.25rem; @include margin-right(.5); } diff --git a/app/templates/agenda/event_detail.html b/app/templates/agenda/event_detail.html index 7329338a..d14d57d5 100644 --- a/app/templates/agenda/event_detail.html +++ b/app/templates/agenda/event_detail.html @@ -12,7 +12,7 @@ {% endmetablock %}{% endblock %} {% block meta_description %}{% metablock %} -{{ event.description }} + {{ event.description }} {% endmetablock %}{% endblock %} {% block page_class %} @@ -70,7 +70,7 @@

- {% google_static_map event 900 300 15 %} + {% google_static_map event 900 300 15 %} {% endblock %} {% endif %} @@ -173,15 +173,9 @@ {% set_short_url_for event %} {% with event as object %} + {% with True as is_event %} {% include "includes/share_buttons.html" %} - - - {% trans "Add to" %} Google Calendar - - - - {% trans "Add to" %} Outlook/iCal - + {% endwith %} {% endwith %} diff --git a/app/templates/agenda/includes/event_metainfo.html b/app/templates/agenda/includes/event_metainfo.html index 43e4489a..f38942a9 100644 --- a/app/templates/agenda/includes/event_metainfo.html +++ b/app/templates/agenda/includes/event_metainfo.html @@ -1,26 +1,46 @@ {% load i18n mezzanine_tags event_tags %} -
-
- {{ event.start }} - {% if event.end %} - {% if event.end|date == event.start|date and event.end.hour|subtract:event.start.hour > 3 %}{{ event.end|time:"TIME_FORMAT" }}{% endif %} - {% if unit_booking %} -    |    - {% if event.prices.all.0|floatformat != '0' %} - {% for price in event.prices.all %}{{ price.value|floatformat:"-2" }} €{% if not forloop.last %} / {% endif %}{% endfor %} - + +
+ {% include 'agenda/includes/event_date.html' %} +
+ +
+ +{% if event.location %} +
+
{{ event.location }}
+ {% if event.location.room %} + {{ event.location.room }} + {% endif %} +
+ + {% google_static_map event 900 300 15 %} + + +
+{% endif %} + +{% if unit_booking %} + + {% if event.prices.all.0|floatformat != '0' %} + {% for price in event.prices.all %} + {% if forloop.first %} +
Tarifs
+

+ {% endif %} + {{ price.value|floatformat:"-2" }} €{% if not forloop.last %}
{% endif %} + {% if forloop.last %} +

+ {% endif %} + {% endfor %} +

+ {% trans "Reserve" %} - {% else %} - {% trans "Free entry. Limited seats available" %} - {% endif %} +

- {% endif %} - {% endif %} - {% if event.location %} - {# {{ event.location }}#} -
- {{ event.location }} - {% endif %} -
-
+ {% else %} + {% trans "Free entry. Limited seats available" %} + {% endif %} + +{% endif %} diff --git a/app/templates/includes/share_buttons.html b/app/templates/includes/share_buttons.html index 6736ce61..71056d3c 100644 --- a/app/templates/includes/share_buttons.html +++ b/app/templates/includes/share_buttons.html @@ -1,4 +1,4 @@ -{% load i18n %} +{% load i18n event_tags %}