]> git.parisson.com Git - mezzo.git/commitdiff
Custom page templates. Overrides the mutations-creations template to include the...
authorJérémy Fabre <Jeremy@iMac-de-Jeremy-2.fritz.box>
Thu, 9 Feb 2017 11:28:55 +0000 (12:28 +0100)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy-2.fritz.box>
Thu, 9 Feb 2017 11:28:55 +0000 (12:28 +0100)
16 files changed:
app/static/src/sass/modules/_hero.scss
app/static/src/sass/modules/_page.scss
app/static/src/sass/modules/boxes/_article-box.scss
app/static/src/sass/modules/boxes/_media-box.scss
app/templates/agenda/event_list.html
app/templates/core/inc/block.html
app/templates/core/inc/related_content.html
app/templates/home/inc/hero-small.html [new file with mode: 0644]
app/templates/magazine/article/article_list.html
app/templates/media/inc/playlist_video_slider.html
app/templates/media/media/includes/media_card.html
app/templates/network/inc/person/list_circle_style.html
app/templates/network/inc/person/list_square_style.html
app/templates/network/inc/person/person_card_circle.html
app/templates/pages/mutations-creations.html [new file with mode: 0644]
app/templates/pages/page.html

index 67e67426f175fd7faae644db7a70eebd4fe17e4e..5cc7854ce462fc1d1c3d1be9ef19e88c12243929 100644 (file)
@@ -128,4 +128,30 @@ $module: ".hero";
 
     }
 
+    &--small {
+
+        @include margin-bottom(4);
+        @include mq($until: xs) {
+            @include margin-bottom(4);
+        }
+
+        &:after {
+            display: none;
+        }
+
+        #{$module}__logo {
+
+            @include margin-top(15);
+            text-align: center;
+            @include mq($until: xs) {
+                @include margin-top(8);
+                img {
+                    width: 159px;
+                }
+            }
+
+        }
+
+    }
+
 }
index 67af0f3ee70d9ab35a3bd148be94159d241b3970..9eac8526838f1b1fa1460eaa974d698a6ff4e231 100644 (file)
@@ -23,7 +23,6 @@ $module: ".page";
 #{$module} {
 
     min-height: 500px;
-    @include margin-top(3);
 
     @include mq($until: sm) {
         min-height: 0;
@@ -130,19 +129,35 @@ $module: ".page";
 
     }
 
+    &__block-title {
+        text-align: left;
+    }
+
     &__block {
 
         @include padding-bottom(1);
 
+        h2:first-child {
+            @include font-size(l);
+            @include line-height(1);
+            @include typeface(serif);
+            font-weight: weight(bold);
+        }
+
         &--yellow {
 
+            #{$module}__block-title {
+                text-align: center;
+            }
+
             background-color: $color-main;
             @include padding-top(2);
             @include padding-bottom(2);
             @include margin(2 0 0 0);
+            color: $color-background;
 
             h2:first-child {
-                margin-top: 0;
+
             }
 
             & + hr {
@@ -158,12 +173,13 @@ $module: ".page";
                        position: relative;
                        z-index: 1;
                        text-decoration: none;
-                border-color: $color-black;
-                border-bottom: 1px solid $color-black;
+                border-color: $color-background;
+                border-bottom: 1px solid $color-background;
+                color: $color-background;
                 @include transition(all 0.15s ease-in-out);
 
                 &:hover {
-                    box-shadow: inset 0 -30px $color-black;
+                    box-shadow: inset 0 -30px $color-background;
                     color: $color-main;
                 }
 
@@ -171,6 +187,47 @@ $module: ".page";
 
         }
 
+        &--white {
+
+            background-color: white;
+            color: $color-background;
+            @include padding-top(2);
+            @include padding-bottom(2);
+            @include margin(2 0 0 0);
+
+            #{$module}__block-title {
+                text-align: center;
+            }
+
+            a:not(.button) {
+
+                color: $color-background;
+                       position: relative;
+                       z-index: 1;
+                       text-decoration: none;
+                border-color: $color-background;
+
+                &:hover {
+                    box-shadow: none;
+                    color: $color-background;
+                }
+
+               }
+
+            h2:first-child {
+
+            }
+
+            & + hr {
+                margin-top: 1px;
+            }
+
+            & + .page__block {
+                @include margin-top(2);
+            }
+
+        }
+
         &--black {
 
             background-color: $color-black;
@@ -179,6 +236,10 @@ $module: ".page";
             @include padding-bottom(2);
             @include margin(2 0 0 0);
 
+            #{$module}__block-title {
+                text-align: center;
+            }
+
             a:not(.button) {
 
                 color: white;
@@ -195,7 +256,7 @@ $module: ".page";
                }
 
             h2:first-child {
-                margin-top: 0;
+
             }
 
             & + hr {
@@ -216,8 +277,35 @@ $module: ".page";
             @include padding-bottom(2);
             @include margin(2 0);
 
+            #{$module}__block-title {
+                text-align: center;
+            }
+
+            a:not(.button) {
+
+                color: white;
+                       position: relative;
+                       z-index: 1;
+                       text-decoration: none;
+                border-color: white;
+
+                &:hover {
+                    box-shadow: none;
+                    color: white;
+                }
+
+               }
+
             h2:first-child {
-                margin-top: 0;
+
+            }
+
+            & + hr {
+                margin-top: 1px;
+            }
+
+            & + .page__block {
+                @include margin-top(2);
             }
 
         }
index 057d3c2089ff639e94818a800640d66f711fa184..ec737b727327fc9e26fe35df3bf0bd5302481a29 100644 (file)
@@ -159,24 +159,6 @@ $module: ".article-box";
             height: auto;
         }
 
-        /*&:after {
-
-            @include mq($until: xs) {
-                display: none;
-            }
-
-            content: "";
-            display: block;
-            position: absolute;
-            bottom: 0;
-            left: 0;
-            right: 0;
-            height: 100px;
-            background-color: rgba(255,255,255,0);
-            @include filter-gradient(#ffffff, #ffffff, vertical);
-            @include background-image(linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%));
-        }*/
-
         .slider-home & {
             @include padding(0);
         }
@@ -261,8 +243,8 @@ $module: ".article-box";
 
         @include margin-top(2);
         position: relative;
-
-
+        border: 0;
+        @include padding(0);
 
         &:after {
 
@@ -270,7 +252,7 @@ $module: ".article-box";
             display: block;
             height: 1px;
             width: 100%;
-            background: #979797;
+            background: $color-main;
             position: absolute;
             bottom: -24px;
             left: 0;
@@ -319,13 +301,24 @@ $module: ".article-box";
                 left: 0;
                 right: 0;
                 height: 100px;
-                background-color: rgba(255,255,255,0);
-                @include filter-gradient(#ffffff, #ffffff, vertical);
-                @include background-image(linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%));
+                background-color: rgba($color-background, 0);
+                @include filter-gradient(rgba($color-background, 1), rgba($color-background, 1), vertical);
+                @include background-image(linear-gradient(top, rgba($color-background, 0) 0%, rgba($color-background, 1) 50%));
             }
 
         }
 
+        &:hover {
+            border: 0;
+            background-color: $color-background;
+            #{$module}__title {
+                color: $color-main;
+            }
+            #{$module}__desc {
+                color: white;
+            }
+        }
+
     }
 
 }
index f77d5b9c156a0cf6307c7f3f69816e3631f1f06e..49cf366c4b3e7a88d64691039f720c7e89d1b303 100644 (file)
@@ -24,76 +24,117 @@ $module: ".media-box";
 
     position: relative;
     display: block;
-    @include margin-bottom(2);
-    @include padding-bottom(.5);
-    @include transition(all 0.25s ease-in-out);
+    @include margin-bottom(1);
+    @include transition(all 0.5s ease-in-out);
+
+    border: 1px solid rgba($color-main, 0.35);
+    @include padding(1);
 
     &:hover {
-        box-shadow: 0px 0px 14px 0px rgba(0,0,0,0.17);
+
+        border: 1px solid rgba($color-main, 1);
+        background: $color-main;
+
+        .media-box__image-container {
+            background: black;
+        }
+
         .media-box__image {
 
             img {
-                @include transform(scale(1.1));
+                -webkit-filter: grayscale(0);
+                filter: grayscale(0);
             }
 
-            &:after {
-                background: $color-black;
-                color: white;
-            }
+        }
+
+        .media-box__title {
+            color: $color-background;
+        }
+        .media-box__type {
+            color: $color-background;
+        }
+        .media-box__subtitle {
+            color: $color-background;
+        }
+        .media-box__desc {
+            color: $color-background;
         }
     }
 
-    &__image {
+    &__image-container {
+        background: $color-background;
+        @include transition(all 0.5s ease-in-out);
+    }
+
+    &__placeholder {
+
+        background: $color-main;
+
+    }
 
-        @include fluid-aspect(320 190);
+    &__content {
+        @include padding(.25 .25 .25 .25);
+
+        position: relative;
         overflow: hidden;
 
-        img {
-            @include transition(all 0.3s ease-in-out);
+        @include mq($until: xs) {
+            height: auto;
         }
 
-        &:after {
-            @include transition(all 0.5s ease-in-out);
+        .slider-home & {
+            @include padding(0);
+        }
+    }
 
-            font-family: FontAwesome;
+    &__image {
+        margin: 0;
+        padding: 0;
+        width: 100%;
+        position: relative;
+        overflow: hidden;
+
+        @include fluid-aspect(427 286);
+
+        img {
             display: block;
-            content: "\f04b";
-            background: white;
-            width: 50px;
-            height: 50px;
-            border-radius: 50px;
+            width: 100%;
+            max-width: 100%;
+            height: auto;
 
-            font-size: 25px;
+            @include transition(all 0.5s ease-in-out);
+
+            -webkit-filter: grayscale(1);
+            filter: grayscale(1);
+            mix-blend-mode: screen;
+        }
 
+        &:after {
+            content: "\f04b";
+            text-indent: 0px;
+            color: white;
+            font-family: FontAwesome;
+            font-size: 50px;
             position: absolute;
             top: 50%;
             left: 50%;
-            margin-top: -25px;
-            margin-left: -25px;
-
-            line-height: 50px;
-            text-align: center;
-            text-indent: 3px;
 
-        }
-
-        &--audio {
-            &:after {
-                content: "\f028";
-                text-indent: 0px;
-            }
+            @include transform(translateX(-50%) translateY(-50%));
         }
 
     }
 
     &__type {
 
-        @include font-size(m);
+        text-transform: uppercase;
+        @include font-size(s);
         @include line-height(1.25);
         @include typeface(sans-serif);
-        @include margin(.25 0 0 0);
-
-        @include padding(0 .25);
+        @include margin(0 0 0 0);
+        font-weight: weight(regular);
+        color: $color-main;
+        @include transition(color 0.5s ease-in-out);
 
     }
 
@@ -102,9 +143,10 @@ $module: ".media-box";
         @include font-size(xl);
         @include line-height(1.25);
         @include typeface(sans-serif);
-        @include margin(0 0 .25 0);
-
-        @include padding(0 .25);
+        @include margin(.5 0 0 0);
+        font-weight: weight(bold);
+        color: $color-main;
+        @include transition(color 0.5s ease-in-out);
 
     }
 
@@ -115,8 +157,8 @@ $module: ".media-box";
         @include typeface(serif);
         @include margin(1 0 .25 0);
         font-weight: weight(light);
-
-        @include padding(0 .25);
+        color: white;
+        @include transition(color 0.5s ease-in-out);
 
     }
 
index e0386e28bcfb3cbd65d04c80cbe4043a58d6689c..0e699732b9edb243b2b5f63bb00d6ce9c7f3b23c 100644 (file)
     {% endmetablock %}
 {% endblock %}
 
-{% block breadcrumb_menu %}
-    {{ block.super }}
-{% endblock %}
-
 {% block main %}
     <div class="page page--{% spaceless %}{% block page_class %}{% endblock %}{% endspaceless %}">
         <div class="container">
index 0cda60247943cbd7d51d5a831d42d4b92ebd6a8a..c270bab0fbd49711713a7444faa8628fec64718f 100644 (file)
@@ -1,9 +1,6 @@
 {% load i18n mezzanine_tags keyword_tags pages_tags organization_tags %}
 {% if blocks %}
     <div class="pb2">
-        {% if blocks.first %}
-        <hr class="mt0" />
-        {% endif %}
         {% for block in blocks %}
             {% if block.content %}
                 {% if not forloop.first and block.with_separator %}
@@ -14,7 +11,9 @@
                         <div class="row" data-summary-content>
                             <div class="col-sm-16 col-md-10 col-md-push-3">
                                 {% editable block.title %}
-                                    <h2 class="dotted">{{ block.title }}</h2>
+                                    <div class="page__block-title">
+                                        <h2 class="">{{ block.title }}</h2>
+                                    </div>
                                 {% endeditable %}
                                 {% if block.description %}
                                     <div class="chapo">
index e8f61a9a38f412b6b728755c58cbafad156af1c0..9e81611ce6be45159fd2cf8a16432833400d6afe 100644 (file)
@@ -1,25 +1,28 @@
 {% load i18n mezzanine_tags keyword_tags organization_tags pages_tags %}
 {% if dynamic_content.first.content_object %}
-    <hr class="mt0 mb0" />
     <div class="pb2">
         <div class="container">
             <div class="row tac">
                 <div class="col-xs-16">
-                    <h2 class="dashed dashed--center mt2">{% if object.related_title.title %}{{ object.related_title.title }}{% else %}{% trans "Also discover" %}{% endif %}</h2>
+                    <h2 class="section-title section-title--underline section-title--uppercase section-title--main">{% if object.related_title.title %}{{ object.related_title.title }}{% else %}{% trans "Also discover" %}{% endif %}</h2>
                 </div>
             </div>
-            <div class="row tac">
-                {% for content in dynamic_content %}
-                    <div class="col-lg-3 col-md-4 col-sm-4 col-xs-6">
-                        {% if content.content_type.model == "article" %}
-                            {% include "magazine/article/includes/article_card.html" with object=content.content_object  %}
-                        {% elif content.content_type.model == "event" %}
-                            {% include "agenda/event/includes/event_card.html" with object=content.content_object %}
-                        {% elif content.content_type.model == "custompage" %}
-                            {% include "pages/page/includes/page_card.html" with object=content.content_object %}
-                        {% endif %}
+            <div class="row">
+                <div class="col-md-10 col-md-push-3 col-xxs-16">
+                    <div class="row">
+                        {% for content in dynamic_content %}
+                            <div class="col-xs-8">
+                                {% if content.content_type.model == "article" %}
+                                    {% include "magazine/article/includes/article_card.html" with object=content.content_object  %}
+                                {% elif content.content_type.model == "event" %}
+                                    {% include "agenda/event/includes/event_card.html" with object=content.content_object %}
+                                {% elif content.content_type.model == "custompage" %}
+                                    {% include "pages/page/includes/page_card.html" with object=content.content_object %}
+                                {% endif %}
+                            </div>
+                        {% endfor %}
                     </div>
-                {% endfor %}
+                </div>
             </div>
         </div>
     </div>
diff --git a/app/templates/home/inc/hero-small.html b/app/templates/home/inc/hero-small.html
new file mode 100644 (file)
index 0000000..06cee32
--- /dev/null
@@ -0,0 +1,25 @@
+{% load i18n pages_tags mezzanine_tags staticfiles keyword_tags event_tags organization_tags %}
+
+<div class="hero hero--small">
+
+    <div class="Background">
+        <canvas class="Background-canvas"></canvas>
+    </div>
+
+    <div class="container">
+
+        <div class="row">
+
+            <div class="col-xs-16">
+
+                <div class="hero__logo">
+                    <img src="{% static "img/vertigo/hero-logo.png" %}" />
+                </div>
+
+            </div>
+
+        </div>
+
+    </div>
+
+</div>
index 18e2d3ac665a7c6add041d74a222c0c7c2bd7f7c..6f4d325f10444f9b14bf7e5f69bf1b08be382c58 100644 (file)
@@ -1,17 +1,65 @@
-{% extends "base.html" %}
-{% load mezzanine_tags organization_tags %}
+{% extends "pages/page.html" %}
+{% load i18n future mezzanine_tags event_tags keyword_tags disqus_tags organization_tags staticfiles pages_tags %}
+
+{% block meta_title %}
+    {% if page %}
+        {{ page.title }}
+    {% else %}
+        {% trans "News" %}
+    {% 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 main %}
+<div class="page page--{% spaceless %}{% block page_class %}{% endblock %}{% endspaceless %}">
+    <div class="container">
+        <div class="row">
+            <div class="col-sm-16 col-md-10 col-md-push-3 tac">
+                <h1 class="section-title section-title--uppercase section-title--main section-title--underline">{% trans "News" %}</h1>
+            </div>
+        </div>
+
+        <div class="row">
 
-{% for object in objects %}
-    <div class="col-lg-3 col-md-4 col-sm-4 col-xs-6">
-        {% with app_label=object|app_label_short classname=object|classname|lower  %}
-            {% with app_label|add:"/"|add:classname|add:"/includes/"|add:classname|add:"_card.html" as template %}
-                {% include template %}
-            {% endwith %}
-        {% endwith %}
+            <div class="mb2 col-md-12 col-md-push-2 page__content" data-summary-content>
+                <div class="page__content">
+                    <div class="container">
+                        <div class="row">
+                            {% for object in objects %}
+                                <div class="col-xs-8">
+                                    {% with app_label=object|app_label_short classname=object|classname|lower  %}
+                                        {% with app_label|add:"/"|add:classname|add:"/includes/"|add:classname|add:"_card.html" as template %}
+                                            {% include template %}
+                                        {% endwith %}
+                                    {% endwith %}
+                                </div>
+                            {% endfor %}
+                        </div>
+                        <div class="row">
+                            <div class="col-xxs-16">
+                                {% pagination_for objects %}
+                            </div>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
     </div>
-{% endfor %}
-{% pagination_for objects %}
+</div>
 
 {% endblock %}
index 43aa8cc3f8302044afa5b21e662b8b565f2ed9d0..a967277345c193329344596a2ca29bf6f65a6b1e 100644 (file)
@@ -7,7 +7,9 @@
             <div class="row">
                 <div class="col-sm-16 col-md-10 col-md-push-3">
                     {% if playlist.title %}
-                        <h3 class="mt0">{{playlist.title}}</h3>
+                        <div class="tac">
+                            <h3 class="section-title section-title--uppercase section-title--main section-title--underline">{{playlist.title}}</h3>
+                        </div>
                     {% endif %}
                     {% if playlist.description %}
                         <p>
index a16e61a6c52b7243cecfaba5006ad7d9b6e43c90..311b0049abf955c8ff882b33574d54c1b48151d3 100644 (file)
@@ -1,20 +1,26 @@
 {% load mezzanine_tags keyword_tags i18n organization_tags staticfiles %}
 
 <div class="">
-    <a class="media-box" href="{% url 'organization-media-detail' object|get_media_type|lower object.slug %}">
-        <figure class="media-box__image media-box__image--video">
-            {% if object.poster_url %}
-                <img src="{{ object.poster_url }}">
-            {% else %}
-                <img src="{% static "img/placeholder-media.png" %}">
+    <a class="media-box media-box--{{object|get_media_type|lower}}" href="{% url 'organization-media-detail' object|get_media_type|lower object.slug %}">
+        <div class="media-box__image-container">
+            <figure class="media-box__image media-box__image--video">
+                {% if object.poster_url %}
+                    <img src="{{ object.poster_url }}">
+                {% else %}
+                    <div class="media-box__placeholder"></div>
+                {% endif %}
+            </figure>
+        </div>
+        <div class="media-box__content">
+            <h2 class="media-box__title">{{ object.title }}</h2>
+            <div class="media-box__type">
+                {{ object|get_media_type }}
+            </div>
+            {% if object.description %}
+                <div class="media-box__desc">
+                    {{ object.description|richtext_filters|safe|truncatechars_html:200 }}
+                </div>
             {% endif %}
-        </figure>
-
-        {{ object|get_media_type }}
-
-        <h2 class="media-box__title">{{ object.title }}</h2>
-        <div class="media-box__desc">
-            {{ object.description|richtext_filters|safe|truncatechars_html:200 }}
         </div>
     </a>
 </div>
index df00a8c1e62d1a2325f17c032386e10d489e0306..e9730e2d1842644253fad7f48b562273562fb2dc 100644 (file)
@@ -1,16 +1,18 @@
 {% load organization_tags mezzanine_tags i18n %}
 {% if person_list_block.title %}
 
-    <div class="white-bg pb2">
+    <div class="pb2">
 
-        <hr class="mt0" />
         <div class="container">
 
             <div class="row">
 
-                <div class="col-sm-9 col-sm-push-3 col-lg-8 col-lg-push-2" data-summary-content>
+                <div class="col-xxs-16 col-md-10 col-md-push-3" data-summary-content>
+
+                    <div class="tac">
+                        <h2 class="section-title section-title--uppercase section-title--main section-title--underline">{{ person_list_block.title }}</h2>
+                    </div>
 
-                    <h2 class="dotted">{{ person_list_block.title }}</h2>
                     {% if person_list_block.description %}
                         <p>{{ person_list_block.description }}</p>
                     {% endif %}
@@ -25,7 +27,7 @@
 
             <div class="row">
 
-                <div class="col-sm-9 col-sm-push-3 col-lg-8 col-lg-push-2">
+                <div class="col-xxs-16 col-md-10 col-md-push-3" data-summary-content>
 
                     {% for person_list_block_inline in person_list_block.person_list_block_inlines.all %}
                         {% with person_list_block_inline.person as person %}
index 17b90fdbfb2cfceb81f4f0eea41b9089a24b81f4..e2c5f0f54c284260c5290df9477640215735ee21 100644 (file)
@@ -1,16 +1,18 @@
 {% load organization_tags mezzanine_tags %}
 {% if person_list_block.title %}
 
-    <div class="white-bg pb2">
+    <div class="pb2">
 
-        <hr class="mt0" />
         <div class="container">
 
             <div class="row">
 
-                <div class="col-sm-9 col-sm-push-3 col-lg-8 col-lg-push-2" data-summary-content>
+                <div class="col-xxs-16 col-md-10 col-md-push-3" data-summary-content>
+
+                    <div class="tac">
+                        <h2 class="section-title section-title--uppercase section-title--main section-title--underline">{{ person_list_block.title }}</h2>
+                    </div>
 
-                    <h2 class="dotted">{{ person_list_block.title }}</h2>
                     {% if person_list_block.description %}
                         <p>{{ person_list_block.description }}</p>
                     {% endif %}
         <div class="container">
 
             <div class="row">
-                <div class="col-sm-9 col-sm-push-3 col-lg-8 col-lg-push-2">
+                <div class="col-md-8 col-md-push-4">
 
-                    <div class="row tal">
+                    <div class="row">
 
                         {% for person_list_block_inline in person_list_block.person_list_block_inlines.all %}
 
-                            <div class="col-lg-4 col-md-4 col-sm-4 col-xs-6">
+                            <div class="col-md-8">
 
                                 {% with person_list_block_inline.person as person %}
 
index d714d3a7c64d8ca6e00e1f228f5f111e712768c5..8467eed9edc6cd4dc0c3c5474183043525b76466 100644 (file)
@@ -3,7 +3,7 @@
 <div class="row">
     <div class="person-list-box">
 
-        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 tac">
+        <div class="col-xxs-3 tac">
 
             <a href="{{ person.get_absolute_url }}" title="{{ person.first_name }}&nbsp;{{ person.last_name }}">
                 <figure class="person-list-box__image">
@@ -19,7 +19,7 @@
 
         </div>
 
-        <div class="col-lg-9 col-md-9 col-sm-9 col-xs-9">
+        <div class="col-xxs-13">
 
             <h3 class="mt0 fsxl">{{ person.first_name }}&nbsp;{{ person.last_name }}</h3>
 
diff --git a/app/templates/pages/mutations-creations.html b/app/templates/pages/mutations-creations.html
new file mode 100644 (file)
index 0000000..e39b399
--- /dev/null
@@ -0,0 +1,100 @@
+{% extends "pages/page.html" %}
+{% load i18n mezzanine_tags keyword_tags pages_tags organization_tags %}
+
+    {% with page.custompage as object %}
+    {% block page_class %}
+        custompage
+    {% endblock %}
+
+    {% block body_class %}
+        {% with page.get_ascendants|last as top_level_parent %}
+            {% if top_level_parent.get_content_model.weaving_css_class %}
+            pattern pattern-bg {{ top_level_parent.get_content_model.weaving_css_class }}
+            {% endif %}
+        {% endwith %}
+    {% endblock %}
+
+    {% block hero %}
+        {% include "home/inc/hero-small.html" %}
+    {% endblock %}
+
+    {% block page_title %}
+        {% editable page.custompage.title %}
+            <h1 class="hide">{{ page.custompage.title }}</h1>
+        {% endeditable %}
+    {% endblock %}
+
+    {% block page_content %}
+
+        {% with page.get_ascendants|last as top_level_parent %}
+            {% if linked_organization_content and research_slug == top_level_parent.slug %}
+                {% include 'pages/page/includes/linked_organization_content.html' %}
+            {% endif %}
+        {% endwith %}
+
+        {% if page.custompage.sub_title %}
+            {% editable page.custompage.sub_title %}
+                <div class="chapo">
+                    {{ page.custompage.sub_title }}
+                </div>
+            {% endeditable %}
+        {% endif %}
+
+        {% if page.custompage.content %}
+         {% editable page.custompage.content %}
+            {{ page.custompage.content|richtext_filters|safe }}
+         {% endeditable %}
+        {% endif %}
+
+        {% if page.get_ascendants|length == 1 %}
+            {% children_pages page.id as childrens %}
+            {% if childrens %}
+                <div class="page__childrens">
+                    {% for child in childrens %}
+                        {% if child.in_menus.0 %}
+                          {% with child as object %}
+                            {% include "pages/page/includes/page_box.html" %}
+                          {% endwith %}
+                        {% endif %}
+                    {% endfor %}
+                </div>
+            {% endif %}
+        {% endif %}
+
+    {% endblock %}
+
+    {% block page_audio %}
+      {% with page.custompage as object %}
+          {{ block.super }}
+      {% endwith %}
+    {% endblock %}
+
+    {% block page_slider %}
+        {% with page.custompage as object %}
+            {{ block.super }}
+        {% endwith %}
+    {% endblock %}
+
+    {% block page_video %}
+      {% with page.custompage as object %}
+          {{ block.super }}
+      {% endwith %}
+    {% endblock %}
+
+    {% block page_person_list %}
+        {% for page_custom_person_list_block_inline in page.custompage.page_custom_person_list_block_inlines.all  %}
+            {% with page_custom_person_list_block_inline.person_list_block as person_list_block %}
+                {% with "network/inc/person/list_"|add:person_list_block.style|add:"_style.html" as template %}
+                    {% include template %}
+                {% endwith %}
+            {% endwith %}
+        {% endfor %}
+    {% endblock %}
+
+    {% block page_sub_content %}
+       {% with page.custompage.blocks.all as blocks %}
+         {% include "core/inc/block.html" %}
+      {% endwith %}
+    {% endblock %}
+
+{% endwith %}
index bd585525ee40b5591c9946c53d4f36846c1da825..146c8ca61a59f2f98605afb3f4be547b06ab722f 100644 (file)
@@ -17,6 +17,9 @@
 
 {% block main %}
 
+    {% block hero %}
+    {% endblock %}
+
     <div class="page page--{% spaceless %}{% block page_class %}{% endblock %}{% endspaceless %}">
         <div class="container">