From 7ceaf908dc7d0cd2f49ea7337186f3f965705dcb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Thu, 15 Sep 2016 16:45:02 +0200 Subject: [PATCH] Event details first implementation --- app/templates/agenda/event_detail.html | 316 ++++++++++++------------- 1 file changed, 149 insertions(+), 167 deletions(-) diff --git a/app/templates/agenda/event_detail.html b/app/templates/agenda/event_detail.html index 015508c6..93283342 100644 --- a/app/templates/agenda/event_detail.html +++ b/app/templates/agenda/event_detail.html @@ -1,205 +1,187 @@ -{% extends "agenda/event_list.html" %} +{% extends "pages/page.html" %} {% load mezzanine_tags comment_tags keyword_tags rating_tags i18n future disqus_tags event_tags organization_tags %} {% block meta_title %}{{ event.meta_title }}{% endblock %} {% block meta_keywords %}{% metablock %} {% keywords_for event as tags %} -{% for tag in tags %}{% if not forloop.first %}, {% endif %}{{ tag }}{% endfor %} +{% for tag in tags %} + {% if not forloop.first %}, {% endif %} + {{ tag }} +{% endfor %} {% endmetablock %}{% endblock %} {% block meta_description %}{% metablock %} {{ event.description }} {% endmetablock %}{% endblock %} -{% block title %} - {% editable event.title %}{{ event.title }}{% endeditable %} +{% block page_class %} + event {% endblock %} -{% block breadcrumb_menu %} -{{ block.super }} -
  • {{ event.title }}
  • -{% endblock %} - -{% block main %} - -{% block event_detail_postedby %} -{% editable event.start event.end event.location %} -{% with True as unit_booking %} - {% include 'agenda/includes/event_metainfo.html' %} - {% for child in event.children.all %} - {% with child as event %} - {% include "agenda/includes/event_metainfo.html" %} - {% endwith %} - {% endfor %} -{% endwith %} -{% endeditable %} -{% endblock %} - -{% block event_detail_commentlink %} -

    - {% if event.allow_comments %} - {% if settings.COMMENTS_DISQUS_SHORTNAME %} - ({% spaceless %} - {% trans "Comments" %} - {% endspaceless %}) - {% else %}({% spaceless %} - {% blocktrans count comments_count=event.comments_count %}{{ comments_count }} comment{% plural %}{{ comments_count }} comments{% endblocktrans %} - {% endspaceless %}) - {% endif %} +{% block page_title %} + {% editable event.title %} +

    {{ event.title }}

    + {% endeditable %} + {% if event.sub_title %} + {% editable event.sub_title %} +
    + {{ event.sub_title }} +
    + {% endeditable %} {% endif %} -

    -{% endblock %} - -{% block event_detail_featured_image %} -{% with event.images.all|get_type:'page_slider' as images %} - {% if images %} -

    - -

    - {% endif %} -{% endwith %} {% endblock %} -{% if settings.COMMENTS_DISQUS_SHORTNAME %} -{% include "generic/includes/disqus_counts.html" %} -{% endif %} - -{% block event_detail_content %} -{% if event.content %} - {% editable event.content %} - {{ event.content|richtext_filters|safe }} - {% endeditable %} -{% else %} - {% lorem 3 p %} -{% endif %} +{% block breadcrumb_menu %} + {{ block.super }} + {% endblock %} -{% block event_sub_content %} - {% with event.blocks.all as blocks %} - {% include "core/inc/block.html" %} - {% endwith %} -{% endblock %} +{% block page_content %} -{% if event.brochure %} -
    - - - {% trans "Download" %} {% trans "the room program" %} - -{% endif %} - -{% block event_detail_sharebuttons %} -{% set_short_url_for event %} - {% with event as object %} - {% include "includes/share_buttons.html" %} - {% endwith %} -{% endblock %} + {% block event_detail_content %} + {% if event.content %} + {% editable event.content %} + {{ event.content|richtext_filters|safe }} + {% endeditable %} + {% else %} + {% lorem 3 p %} + {% endif %} + {% endblock %} + + {% if event.brochure %} +
    + + + {% trans "Download" %} {% trans "the room program" %} + + {% endif %} -{% block event_detail_calendar %} -
    - - - {% trans "Add to" %} Google Calendar - - - - {% trans "Add to" %} Outlook/iCal - -
    -{% endblock %} + {% comment %} + {% if event.location %} +

    Le lieu :

    + {% block event_detail_location %} + {{ event.location }} +

    +

    {{ event.location }} {{ event.location.address|linebreaksbr }}

    + + Get Directions + +

    + + {% google_static_map event 900 300 15 %} + + {% endblock %} + {% endif %} -{% comment %} -{% if event.location %} -

    Le lieu :

    -{% block event_detail_location %} -{{ event.location }} -

    -

    {{ event.location }} {{ event.location.address|linebreaksbr }}

    - - Get Directions - -

    - - {% google_static_map event 900 300 15 %} - -{% endblock %} -{% endif %} + {% block event_detail_keywords %} + {% keywords_for event as tags %} + {% if tags %} + {% spaceless %} + + {% endspaceless %} + {% endif %} + {% endblock %} + + {% block event_detail_rating %} +
    +
    + {% rating_for event %} +
    +
    + {% endblock %} + {% endcomment %} + + {% block event_related %} + {% if event.artists.all or event.videos.all or event.blog_posts.all %} +

    {% trans "Also discover" %}

    +
    +
    + {% if event.artists.all %} + {% for artist in event.artists.all %} + {% include "festival/inc/artist_card.html" %} + {% endfor %} + {% endif %} + {% if event.videos.all %} + {% for video in event.videos.all %} + {% include 'festival/inc/video_card.html' %} + {% endfor %} + {% endif %} + {% if event.blog_posts.all %} + {% for post in event.blog_posts.all %} + {% include 'blog/includes/post_card.html' %} + {% endfor %} + {% endif %} +
    + {% endif %} + {% endblock %} -{% block event_detail_keywords %} -{% keywords_for event as tags %} -{% if tags %} -{% spaceless %} - -{% endspaceless %} -{% endif %} {% endblock %} -{% block event_detail_rating %} -
    -
    - {% rating_for event %} -
    -
    -{% endblock %} -{% endcomment %} - -{% block event_previous_next %} - {% endblock %} -{% block event_related %} -{% if event.artists.all or event.videos.all or event.blog_posts.all %} -

    {% trans "Also discover" %}

    -
    -
    -{% if event.artists.all %} - {% for artist in event.artists.all %} - {% include "festival/inc/artist_card.html" %} - {% endfor %} -{% endif %} -{% if event.videos.all %} - {% for video in event.videos.all %} - {% include 'festival/inc/video_card.html' %} - {% endfor %} -{% endif %} -{% if event.blog_posts.all %} - {% for post in event.blog_posts.all %} - {% include 'blog/includes/post_card.html' %} - {% endfor %} -{% endif %} -
    -{% endif %} +{% block page_videos %} + {% with event.videos.all as videos %} + {% if videos %} + {% include 'core/inc/slider_video.html' %} + {% endif %} + {% endwith %} {% endblock %} -{% block event_detail_comments %} -{% if event.allow_comments %}{% comments_for event %}{% endif %} +{% block page_sub_content %} + {% with event.blocks.all as blocks %} + {% include "core/inc/block.html" %} + {% endwith %} {% endblock %} -{% block ical %} -{# {% trans "Subscribe to all events in" %} Google Calendar/Outlook/iCal#} -{% endblock %} +{% block page_sidebar %} + +
    + + {% block event_detail_postedby %} + {% editable event.start event.end event.location %} + {% with True as unit_booking %} + {% include 'agenda/includes/event_metainfo.html' %} + {% for child in event.children.all %} + {% with child as event %} + {% include "agenda/includes/event_metainfo.html" %} + {% endwith %} + {% endfor %} + {% endwith %} + {% endeditable %} + {% endblock %} + + {% set_short_url_for event %} + {% with event as object %} + {% include "includes/share_buttons.html" %} + + + {% trans "Add to" %} Google Calendar + + + + {% trans "Add to" %} Outlook/iCal + + {% endwith %} +
    {% endblock %} -- 2.39.5