From: Jérémy Fabre Date: Mon, 17 Oct 2016 15:15:07 +0000 (+0200) Subject: Add tournees banner and menu link X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=129bbc94ba78400b7f0a6dee6095cb8b596bfadf;p=mezzo.git Add tournees banner and menu link --- diff --git a/app/static/src/sass/modules/_banner.scss b/app/static/src/sass/modules/_banner.scss index e3114c95..39cc834a 100644 --- a/app/static/src/sass/modules/_banner.scss +++ b/app/static/src/sass/modules/_banner.scss @@ -99,6 +99,25 @@ $module: ".banner"; } + &--small { + + height: 150px; + margin-top: 0; + + @include mq($until: lg) { + + height: 150px; + + } + + #{$module}__content { + + padding-top: 40px; + + } + + } + &__content { position: absolute; diff --git a/app/static/src/sass/modules/navs/_nav-tree.scss b/app/static/src/sass/modules/navs/_nav-tree.scss index adcbec96..876790bc 100644 --- a/app/static/src/sass/modules/navs/_nav-tree.scss +++ b/app/static/src/sass/modules/navs/_nav-tree.scss @@ -10,6 +10,12 @@ $module: ".nav-tree"; position: absolute; width: 100%; + @include mq($until: sm) { + + position: static; + + } + .nav-tree & { position: relative; } diff --git a/app/templates/agenda/event_list.html b/app/templates/agenda/event_list.html index 663d61a8..a8162bca 100644 --- a/app/templates/agenda/event_list.html +++ b/app/templates/agenda/event_list.html @@ -1,5 +1,5 @@ {% extends "pages/page.html" %} -{% load i18n future mezzanine_tags event_tags keyword_tags disqus_tags organization_tags %} +{% load i18n future mezzanine_tags event_tags keyword_tags disqus_tags organization_tags staticfiles %} {% block meta_title %} {% if page %} @@ -27,9 +27,13 @@ {% block breadcrumb_menu %} {{ block.super }} - {% if tag or location or month or week or author %} + {% if tag and tag|tag_is_excluded %} + + {% elif tag or location or month or week or author %} {% else %} {% endif %} {% endblock %} @@ -67,7 +71,11 @@ {% if page %} {{ page.richtextpage.meta_title }} {% else %} - {% trans "Agenda" %} + {% if tag and tag|tag_is_excluded %} + {% trans "Tournées" %} + {% else %} + {% trans "Rendez-vous" %} + {% endif %} {% endif %} @@ -81,7 +89,13 @@ -
+
+ + {% if tag and not tag|tag_is_excluded or not tag %} + + {% endif %} + + {% for event in events.object_list %} {% include 'agenda/includes/event_linecard.html' %} {% endfor %} diff --git a/app/templates/agenda/includes/event_linecard.html b/app/templates/agenda/includes/event_linecard.html index 7884195a..23796806 100644 --- a/app/templates/agenda/includes/event_linecard.html +++ b/app/templates/agenda/includes/event_linecard.html @@ -25,13 +25,13 @@ {% with event.images.all|get_type:'card' as images %} {% if images %} - + {% else %} {% with event.parent.images.all|get_type:'card' as images %} {% if images %} - + {% endif %} {% endwith %} diff --git a/app/templates/home/inc/services.html b/app/templates/home/inc/services.html index 377c9bd6..558e57e4 100644 --- a/app/templates/home/inc/services.html +++ b/app/templates/home/inc/services.html @@ -6,7 +6,7 @@