From: Jérémy Fabre Date: Thu, 29 Sep 2016 13:12:33 +0000 (+0200) Subject: Merge branch 'dev' of git+ssh://git.forge.ircam.fr/ircam-www into dev X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=788cf64eac547e6eeb768f52a640ca5760a33727;p=mezzo.git Merge branch 'dev' of git+ssh://git.forge.ircam.fr/ircam-www into dev # Conflicts: # app/templates/agenda/event_list.html --- 788cf64eac547e6eeb768f52a640ca5760a33727 diff --cc app/templates/agenda/event_list.html index f210cdc5,b0c3e67f..64ceebdc --- a/app/templates/agenda/event_list.html +++ b/app/templates/agenda/event_list.html @@@ -1,61 -1,130 +1,78 @@@ -{% extends "base.html" %} +{% extends "pages/page.html" %} {% load i18n future mezzanine_tags event_tags keyword_tags disqus_tags organization_tags %} -{% block meta_title %}{% if page %}{{ page.richtextpage.meta_title }}{% else %}{% trans "Events" %}{% endif %}{% endblock %} - -{% block meta_keywords %}{% metablock %} -{% keywords_for page as keywords %} -{% for keyword in keywords %} - {% if not forloop.first %}, {% endif %} - {{ keyword }} -{% endfor %} -{% endmetablock %}{% endblock %} - -{% block meta_description %}{% metablock %} -{{ page.description }} -{% endmetablock %}{% endblock %} - -{% block title %} -{% if page %} -{{ page.title }} -{% else %} -{% trans "Program" %} -{% endif %} -{% endblock %} - -{% block breadcrumb_menu %} -{{ block.super }} -{% if tag or location or year or month or author %} -
  • {% spaceless %} -{% if tag %} - {% trans "Tag:" %} {{ tag }} -{% else %}{% if location %} - {% trans "Location:" %} {{ location }} -{% else %}{% if year or month %} - {% if month %}{{ month }}, {% endif %}{{ year }} -{% else %}{% if author %} - {% trans "Author:" %} {{ author.get_full_name|default:author.username }} -{% endif %}{% endif %}{% endif %}{% endif %} -{% endspaceless %} -
  • -{% endif %} -{% endblock %} - -{% block main %} - -{% comment %} -{% if tag or location or year or month or author %} - {% block event_list_filterinfo %} -

    - {% if tag %} - {% trans "Viewing events tagged" %} {{ tag }} - {% elif location %} - {% trans "Viewing events for the location" %} {{ location }} - {% elif year or month %} - {% if not day %} - {% trans "Viewing events from" %} {% if month %}{{ month }}, {% endif %}{{ year }} - {% else %} - {% trans "Viewing events from" %} {{ day_date }} - {% endif %} - {% elif author %} - {% trans "Viewing events by" %} - {{ author.get_full_name|default:author.username }} - {% endif %} - {% endblock %} -

    -{% else %} -{% endcomment %} - -{% if page %} - {% block event_list_pagecontent %} - {{ page.richtextpage.content|richtext_filters|safe }} - {% endblock %} +{% block meta_title %} + {% if page %} + {{ page.richtextpage.meta_title }} {% else %} + {% trans "Events" %} + {% endif %} +{% endblock %} - + {% endmetablock %} +{% endblock %} -
    +{% block meta_description %} + {% metablock %} + {{ page.description }} + {% endmetablock %} +{% endblock %} - {% block event_keywords %} - {% keywords_for mezzanine_agenda.event as tags %} - {% all_events as all_events %} - {% if tags %} - -
    {% endif %} - {% endblock %} -{% endif %} -{# {% endif %}#} +{% endblock %} ++{% block main %} +
    +
    + {% for event in events.object_list %} + {% include 'agenda/includes/event_card.html' %} + {% endfor %} +
    +
    - ++{% endblock %} + {# {% trans "Subscribe to all events in" %} Google Calendar/Outlook/iCal#} + + {% pagination_for events %} + + {% if settings.COMMENTS_DISQUS_SHORTNAME %} + {% include "generic/includes/disqus_counts.html" %} + {% endif %} + -{% endblock %} - -{% block right_panel %} -{% include "agenda/includes/filter_panel.html" %} +{% block page_title %} +

    + {% if page %} + {{ page.richtextpage.meta_title }} + {% else %} + {% trans "Agenda" %} + {% endif %} +

    {% endblock %}