From 55df602274f121c53c6094018a55b4824445e672 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Je=CC=81re=CC=81my=20Fabre?= Date: Thu, 29 Sep 2016 15:07:23 +0200 Subject: [PATCH] Add title and breadcrumb on event list --- app/templates/agenda/event_list.html | 167 ++++++++------------------- 1 file changed, 49 insertions(+), 118 deletions(-) diff --git a/app/templates/agenda/event_list.html b/app/templates/agenda/event_list.html index d3014bed..f210cdc5 100644 --- a/app/templates/agenda/event_list.html +++ b/app/templates/agenda/event_list.html @@ -1,130 +1,61 @@ -{% 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 %}#} - -
    -
    -{% for event in events.object_list %} - {% include 'agenda/includes/event_card.html' %} -{% endfor %} -
    -
    - -{# {% 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 %} -- 2.39.5