From 36fdc89f164f780f9d44b98f212575cf23b0470f Mon Sep 17 00:00:00 2001 From: Thomas JUND Date: Thu, 28 Jan 2021 11:19:31 +0100 Subject: [PATCH] hautes-alpes-2018: remove theme (#50361) --- Makefile | 2 - static/hautes-alpes-2018/_circle-steps.scss | 95 ---- static/hautes-alpes-2018/_custom.scss | 481 ------------------ .../hautes-alpes-2018/_neutral-variant.scss | 114 ----- static/hautes-alpes-2018/_vars.scss | 84 --- static/hautes-alpes-2018/config.json | 6 - static/hautes-alpes-2018/extra.js | 10 - static/hautes-alpes-2018/img/favicon.ico | Bin 17503 -> 0 bytes static/hautes-alpes-2018/style.scss | 9 - .../combo/page_template_commune.html | 17 - .../combo/page_template_neutre.html | 104 ---- .../hautes-alpes-2018/prepare-template.py | 73 --- .../variants/hautes-alpes-2018/theme.html | 65 --- .../hautes-alpes-2018/theme.orig.html | 1 - 14 files changed, 1061 deletions(-) delete mode 100644 static/hautes-alpes-2018/_circle-steps.scss delete mode 100644 static/hautes-alpes-2018/_custom.scss delete mode 100644 static/hautes-alpes-2018/_neutral-variant.scss delete mode 100644 static/hautes-alpes-2018/_vars.scss delete mode 100644 static/hautes-alpes-2018/config.json delete mode 100644 static/hautes-alpes-2018/extra.js delete mode 100644 static/hautes-alpes-2018/img/favicon.ico delete mode 100644 static/hautes-alpes-2018/style.scss delete mode 100644 templates/variants/hautes-alpes-2018/combo/page_template_commune.html delete mode 100644 templates/variants/hautes-alpes-2018/combo/page_template_neutre.html delete mode 100644 templates/variants/hautes-alpes-2018/prepare-template.py delete mode 100644 templates/variants/hautes-alpes-2018/theme.html delete mode 120000 templates/variants/hautes-alpes-2018/theme.orig.html diff --git a/Makefile b/Makefile index 3ce43f31..88ab108c 100644 --- a/Makefile +++ b/Makefile @@ -44,8 +44,6 @@ icons: # somme cd src/ && python3 render-imgs-categories.py ../static/somme-cd80/img/ --primary A8002B --secondary A8002B cd src/ && python3 render-imgs-dashboard.py ../static/somme-cd80/img/ --normal 4D4D4D --selected 87A738 --title FFFFFF --title-width 80 - cd src/ && python3 render-imgs-categories.py ../static/hautes-alpes-2018/img/icon-rouge --primary B73720 --secondary B73720 - cd src/ && python3 render-imgs-categories.py ../static/hautes-alpes-2018/img/icon-bleu --primary 1C515E --secondary 1C515E # tournai cd static/tournai/ && for F in assets/*.svg; do $(INKSCAPE) --without-gui --file $$F --export-area-drawing --export-area-snap --export-png img/$$(basename $$F .svg).png --export-width 40; done diff --git a/static/hautes-alpes-2018/_circle-steps.scss b/static/hautes-alpes-2018/_circle-steps.scss deleted file mode 100644 index 38e9a33c..00000000 --- a/static/hautes-alpes-2018/_circle-steps.scss +++ /dev/null @@ -1,95 +0,0 @@ -div#steps { - - padding: 0 1em; - - ol li { - display: flex; - flex-direction: column; - - margin: 25px 0; - padding: 0.5ex; - position: relative; - border: 0; - - span.marker { - justify-content: center; - align-items: center; - display: inline-flex; - margin: 0 auto 0.3em auto; - width: 4vw; - height: 4vw; - color: gray; - position: relative; - border: 1px solid gray; - border-radius: 50%; - background: transparent; - font-size: calc(12px + 1.2vw); - font-weight: bold; - text-align: center; - vertical-align: middle; - max-width: 100%; - max-height: 100%; - - &::before { - display: block; - content: ' '; - border-radius: 50%; - position: absolute; - background: $button-background; - z-index: -1; - padding: 6px; - } - } - - span.label { - margin: 0 -1em; - text-align: center; - vertical-align: middle; - } - - &.current { - background: transparent; - font-weight: bold; - - span.label { - color: $title-color; - } - - span.marker { - color: white; - border-color: $primary-color; - background: $primary-color; - } - } - } -} -@media screen and ($max-mobile-viewport) { - div#gauche div#steps { - - order: 2; - padding: 0; - - ol { - display: flex; - flex-direction: row; - flex-flow: nowrap; - justify-content: center; - align-items: center; - - li { - padding: 0 0.6em 1ex 0; - - span.marker { - padding: 0.3em; - border-radius: 50%; - width: 4rem; // reset size without vw - height: 4rem; - } - - span.label { - display: none; - } - } - } - } -} \ No newline at end of file diff --git a/static/hautes-alpes-2018/_custom.scss b/static/hautes-alpes-2018/_custom.scss deleted file mode 100644 index 5c1d7e55..00000000 --- a/static/hautes-alpes-2018/_custom.scss +++ /dev/null @@ -1,481 +0,0 @@ -div#main-content-wrapper { - z-index: 1; - max-width: 100%; -} - -#document #corps, #page { - z-index: 0; - - #messages { - padding: $block-padding; - margin: $messages-block-margin; - max-width: $width; - font-weight: 600; - letter-spacing: 0.025em; - } - - // override .errornotice (includes/misc) - %custom-error-notice { - @extend .errornotice; - &::before { - font-size: 30px; - } - } - - // error warnings (WCS) - div.widget div.content div.error { - @extend %custom-error-notice; - margin-top: 0; - } - - #messages li, - div.infonotice, - div.successnotice, - div.warningnotice, - div.errornotice { - @extend %custom-error-notice; - } - - // override includes/_forms.scss - .fargo-pick-popup button, - button.ui-button, - a#a2-continue, - div#content button, - input[type=submit], - div.buttons input { - @extend %button-style; - } - - // override includes/_wcs.scss - ul#evolutions { - li span.item { - /* left circle icon */ - background: $button-background !important; - border-color: $button-background; - color: $secondary-color !important; - } - - div.evolution-metadata, li div.msg { - background: $cell-background; - } - } - - // override fc.css - div#fc-button a.button div { - height: auto; - } - - #main-content-wrapper { - z-index: 1; - max-width: 100%; - } - - > .site-nav { - display: flex; - align-items: center; - justify-content: center; - // flexbug https://github.com/philipwalton/flexbugs#flexbug-2 - max-width: 100%; - background-color: $cell-background; - font-size: 1.5rem; - @media screen and ($max-mobile-viewport) { - flex-direction: column; - } - - > div { - @media screen and ($max-mobile-viewport) { - margin: $inner-nav-margin; - } - } - - div#nav { - order: 0; - flex-basis: 50%; - background-color: transparent; - height: unset; - - @media screen and ($max-mobile-viewport) { - flex-basis: auto; - width: 100%; - - > ul { - display: flex; - justify-content: space-around; - align-items: center; - // flexbug https://github.com/philipwalton/flexbugs#flexbug-2 - max-width: 100%; - - > li { - flex-wrap: wrap; - a { - line-height: 1em; - } - } - - ul { - display: none; - } - } - } - // first-level menu - ul:first-child { - display: flex; - justify-content: center; - flex-wrap: wrap; - height: unset; - li { - flex-grow: 0; - } - } - - ul { - li { - font-weight: 700; - a { - color: $font-color; - line-height: 2.7em; - padding: 0 0.7em; - } - - &.selected, - &:hover { - > a { - color: $primary-color; - } - } - } - } - } - // User authentication block - .user-nav { - flex-basis: 50%; - order: 1; - - @media screen and ($max-mobile-viewport) { - flex-basis: $nav-height; - margin: 0; - width: 100%; - - a { - height: auto; - transition: background 0.5s, color 0.5s; - } - span.connected-user { - padding: 0; - } - } - - span.login, span.logged-in { - display: flex; - flex-direction: row; - align-items: center; - justify-content: center; - // flexbug https://github.com/philipwalton/flexbugs#flexbug-2 - max-width: 100%; - padding: 0.5em; - height: 100%; - - a { - font-weight: 700; - color: $font-color; - height: auto; - - &.selected, - &:hover { - color: $primary-color; - text-decoration: none; - } - } - a.registration, span.sep, a.logout { - padding-left: 1em; - } - } - height: $nav-height; - margin: $custom-nav-margin; - } - } -} - -div#content { - max-width: $width; - margin: $content-block-margin; - padding: $block-padding; - - #gauche, - div#rub_service, - div#services > ul > li, - div.a2-block, - div.a2-continue, - div.block, - div.cell { - padding: $block-padding; - background-color: $cell-background; - margin: $inner-div-margin; - } - - // override default _cells - div#sidebar + div#columns-wrapper > div.a2-block, - div#login-page.methods2 > div.block { - margin: $inner-div-margin; - } - - div#sidebar + div#columns-wrapper { - #frontend-registration-email { - float: left; - max-width: calc(50% - 1em); - } - #frontend-registration-fc { - float: right; - max-width: calc(50% - 1em); - } - } - - div#gauche + div#rub_service { - width: calc(79% - 1em); - } - - #side { - text-align: center; - } - - form { - margin: $form-margin; - padding: $title-padding; - background-color: $form-background; - border: 0; - - .title label { - display: block; - margin-bottom: 0.3em; - font-weight: 400; - color: #B73720; - } - - input#tracking-code, - input[type="tel"], - input[type="url"], - input[type="date"], - input[type="file"], - input[type="text"], - input[type="email"], - input[type="number"], - input[type="search"], - input[type="password"], - textarea, - select { - @include vendor-prefix(appearance, none); - width: 100%; - max-width: 70rem; - background-color: #FFFFFF; - font-family: $font-family; - font-size: 1.5rem; - padding: 0.8em 1em; - line-height: normal; - font-weight: 600; - border: 1px solid transparent; - border-radius: 5px; - vertical-align: middle; - - &:focus { - border-color: #AAA; - } - } - - h3, h4 { - font-family: $font-family; - font-weight: 400; - - &::before { - color: $primary-color; - } - } - - h3 { - font-size: 2.2rem; - } - - } - - h1, - h2, - h3 { - @extend %title-style; - } - - h2 { - font-size: 2.5rem; - } - - h3 { - font-size: 1.6rem; - } - - div.buttons.submit { - display: flex; - justify-content: flex-start; - flex-direction: row-reverse; - flex-wrap: wrap; - - .cancel, - [name="previous"] { - background: $cell-background; - } - } - - button { - @extend %button-style; - } - - #tracking-code { - h1, - h2, - h3 { - padding: 0 5px; - margin: $tracking-title-margin; - line-height: normal; - } - a { - padding: 0.5ex 0; - } - } - - input, - textarea { - @media screen and ($max-mobile-viewport) { - max-width: 100%; - } - } - - div.cell.wcsformsofcategorycell { - - background-color: $category-title-background; - border-color: $category-title-background; - - &.toggled { - h2:first-child { - color: $title-color; - background-color: $category-title-background; - } - - ul { - background-color: $title-background; - color: $title-color; - padding: 0; - - li { - a { - padding: 1rem; - color: $title-color; - } - a:hover { - color: $title-color; - background-color: $button-hover-background; - } - } - } - } - - h2:first-child { - @extend %title-style; - display: inline-block; - padding-right: 1.5em; - font-size: 1.6rem; - color: $title-color; - background-color: $category-title-background; - text-transform: none; - border: none; - background-repeat: no-repeat; - background-position: top left; - padding-left: 140px; - min-height: 95px; - letter-spacing: 0.025em; - line-height: 1.25; - font-weight: 600; - transition: all 0.3s; - - &:hover { - background-color: $cell-entry-hover-background; - } - - &::before { - content: $minus-icon; - font-family: FontAwesome; - font-size: 0.9rem; - position: relative; - margin-bottom: 0.2em; - -webkit-font-smoothing: antialiased; - color: $primary-color; - } - - &::after { - content: $arrow-down-icon; - font-family: FontAwesome; - font-size: 10px; - position: absolute; - right: 1em; - top: 1em; - vertical-align: middle; - } - - &.on { - &::after { - content: $arrow-up-icon; - } - } - } - - @each $category in $category-slugs { - @if $category-has-toggled-icons { - &.#{$category} h2:first-child { background-image: url(img/icon-rouge/#{$category}.png), url(img/icon-rouge/#{$category}-on.png); } - &.#{$category}.#{$_category_selector_class} h2:first-child { background-image: url(img/icon-rouge/#{$category}-on.png); } - &.bleu { - &.#{$category} h2:first-child { background-image: url(img/icon-bleu/#{$category}.png), url(img/icon-bleu/#{$category}-on.png); } - &.#{$category}.#{$_category_selector_class} h2:first-child { background-image: url(img/icon-bleu/#{$category}-on.png); } - } - } @else { - &.#{$category} h2:first-child { background-image: url(img/icon-rouge/#{$category}.png); } - &.bleu.#{$category} h2:first-child { background-image: url(img/icon-bleu/#{$category}.png); } - } - } - } -} - -div.ui-dialog { - - div.ui-dialog-titlebar span.ui-dialog-title { - @extend %title-style; - font-size: 2.5rem; - } - - button { - @extend %button-style; - - &.ui-button { - height: 5.5em; - } - } -} - -@media screen and ($max-mobile-viewport) { - div#content { - padding: $mobile-block-padding; - - div#columns { - flex-direction: column; - padding: $mobile-block-padding; - - > div { - padding: 0.1em; - } - div#gauche, div#rub_service { - width: calc(100% - 1em); - } - - #frontend-registration-fc, #frontend-registration-email { - float: none; - max-width: 100%; - } - - } - } -} diff --git a/static/hautes-alpes-2018/_neutral-variant.scss b/static/hautes-alpes-2018/_neutral-variant.scss deleted file mode 100644 index 9fb63623..00000000 --- a/static/hautes-alpes-2018/_neutral-variant.scss +++ /dev/null @@ -1,114 +0,0 @@ -// main content wrapper variant -$custom-header-height: 10em; -$custom-mobile-header-height: 5em; -$margin-center: 0 auto; - -.template-neutre { - #page { - display: block; - font-weight: 400; - font-size: 1.5rem; - line-height: 1.4; - margin-top: $custom-header-height; - - @media screen and ($max-mobile-viewport) { - margin-top: $custom-mobile-header-height; - } - - .site-header { - background-color: white; - position: fixed; - top: 0; - left: 0; - right: 0; - z-index: 2; - } - - #header-wrapper { - - @media screen and ($max-mobile-viewport) { - min-height: $custom-mobile-header-height; - } - - #header { - #top { - display: flex; - align-items: center; - justify-content: center; - margin: $margin-center; - width: 100%; - min-height: $custom-header-height; - max-width: $width; - - > .cell { - flex: 1 1 100%; - - &.top-logo { - flex-basis: auto; - } - } - } - } - #toplinks { - display: none; - } - } - - .site-nav { - display: flex; - - .user-nav { - margin: $margin-center; - } - - div#nav { - margin: $margin-center; - height: auto; - - ul { - margin: 0; - - > li a { - line-height: 2.7em; - } - - > li:hover > ul { - background: $cell-background; - } - @media screen and ($max-mobile-viewport) { - height: 60px; - - > li a { - line-height: 1em; - } - } - } - } - } - - #nav-skip { - display: none; - } - - footer { - padding-top: 20px; - padding-bottom: 20px; - color: $footer-color; - background: $footer-background; - - a { - color: $footer-color; - } - - #footer-wrapper { - margin: $margin-center; - - #footer { - a { - color: white; - } - } - } - } - } -} \ No newline at end of file diff --git a/static/hautes-alpes-2018/_vars.scss b/static/hautes-alpes-2018/_vars.scss deleted file mode 100644 index e357d258..00000000 --- a/static/hautes-alpes-2018/_vars.scss +++ /dev/null @@ -1,84 +0,0 @@ - -$primary-color: #B73720; /* red/bordeau */ -$secondary-color: #1C515E; /* bleu */ -$width: 1170px; -$mobile-limit: 768px; -$tablet-limit: 1024px; -$font-color: #202020; -$font-family: Asap, sans-serif; -$font-size: 62.5%; -$footer-color: #FFFFFF; -$footer-background: #2B2B2B; -$border-radius: 0px; -$link-color: #202020; - -$title-background: transparent; -$title-color: $font-color; -$title-font-family: Asap, sans-serif; -$title-font-size: 2.5rem; -$title-padding: 1ex 0.5rem; -$title-margin: 0; - -$nav-color: $font-color; -$nav-active-color: transparent; -$nav-height: 51px; -$nav-item-hover-color: $nav-active-color; -$nav-mobile-menu-background: white; - -$custom-nav-margin: 10px auto; -$nav-button-background: #1C515E; -$nav-button-color: white; -$nav-menu-side: 90px; - -$form-style: light; -$form-background: #F1F1F1; -$form-margin: 0 0 3rem; -$button-background: #ECB500; -$button-hover-background: #FFCB20; -$button-color: $font-color; -$button-border: none; -$button-border-radius: 8px; -$button-margin: 2ex 0.5ex; -$nav-item-hover-background: $button-background; - -$cell-background: #EFEFEF; -$cell-entry-hover-background: #FFCB20; -$cell-border: 0; -$cell-entry-color: #202020; -$inner-div-margin: 1.5rem 0.5rem; -$block-padding: 1em; -$mobile-block-padding: 0 0.1em; -$content-block-margin: 0 auto; -$messages-block-margin: 0px auto 0px auto; -$inner-nav-margin: 0 auto; // !important; -$nav-margin: 10px auto; -$tracking-title-margin: 0.3em 0; - -$category-title-background: #ECB500; -$category-color: $font-color; -$category-has-toggled-icons: false; - -$arrow-down-icon: '\f107'; -$arrow-up-icon: '\f106'; -$arrow-right-icon: '\f105'; -$minus-icon : '\f068'; - -%button-style { - display: inline-block; - margin: $button-margin; - transition: all 0.2s; - font-size: 1.5rem; - padding: 0.5em 1em; - font-weight: 600; - letter-spacing: 0.025em; - height: auto; -} - -%title-style { - margin: $title-margin; - font-family: Asap, sans-serif; - font-weight: 500; - font-size: $title-font-size; - line-height: 1.2; - padding: $title-padding; -} diff --git a/static/hautes-alpes-2018/config.json b/static/hautes-alpes-2018/config.json deleted file mode 100644 index b4aefd3f..00000000 --- a/static/hautes-alpes-2018/config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "label": "Hautes-Alpes 2018", - "variables": { - "theme_color": "#B73720" - } -} diff --git a/static/hautes-alpes-2018/extra.js b/static/hautes-alpes-2018/extra.js deleted file mode 100644 index a7e58554..00000000 --- a/static/hautes-alpes-2018/extra.js +++ /dev/null @@ -1,10 +0,0 @@ -/* globals $, window */ -$(function() { - $('div.wcsformsofcategorycell').delegate('h2', 'click', function() { - $(this).parents('div.wcsformsofcategorycell').toggleClass('toggled'); - $(this).toggleClass('on'); - }); - $(window).on('load', function () { - $('#page').css('margin-top', $('#header-wrapper').css('height')); - }); -}) \ No newline at end of file diff --git a/static/hautes-alpes-2018/img/favicon.ico b/static/hautes-alpes-2018/img/favicon.ico deleted file mode 100644 index 30dc880a611e1001f9261aa0d2b44498576d1a09..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17503 zcmeI4dsGu=7Qn}Xir@pK#W##W+6qi&Chx?M!V(d%u{7WTYqv6)Ody(MLJ~-z4_~cX z71sw+vDL1R`s$%t>teUQ+oG{n+bUXh#mD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2 sF_r7eF4U&NwZF8Uzp=T74uYKDeKK!c#GQRi4TI9hj8}i~m%N$(0iZwX8~^|S diff --git a/static/hautes-alpes-2018/style.scss b/static/hautes-alpes-2018/style.scss deleted file mode 100644 index db7aafe5..00000000 --- a/static/hautes-alpes-2018/style.scss +++ /dev/null @@ -1,9 +0,0 @@ -@charset "UTF-8"; - -@import '../includes/fonts/asap'; -@import 'vars'; -@import '../includes/publik'; -@import '../includes/categories'; -@import 'custom'; -@import 'circle-steps'; -@import 'neutral-variant'; diff --git a/templates/variants/hautes-alpes-2018/combo/page_template_commune.html b/templates/variants/hautes-alpes-2018/combo/page_template_commune.html deleted file mode 100644 index ccf26b0d..00000000 --- a/templates/variants/hautes-alpes-2018/combo/page_template_commune.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "combo/page_template_neutre.html" %} -{% load combo i18n %} - -{% block nav %} -{% endblock %} - -{% block columns %} -
- {% trans "Left column" as name %} - {% placeholder "content" name=name %} -
-
- {% trans "Right column" as name %} - {% placeholder "right" name=name %} -
-{% endblock %} - diff --git a/templates/variants/hautes-alpes-2018/combo/page_template_neutre.html b/templates/variants/hautes-alpes-2018/combo/page_template_neutre.html deleted file mode 100644 index a63c1d9d..00000000 --- a/templates/variants/hautes-alpes-2018/combo/page_template_neutre.html +++ /dev/null @@ -1,104 +0,0 @@ -{% extends "theme.orig.html" %} - -{% load static i18n combo gadjo %} -{% block extra_top_head %} -{{ block.super }} - -{% skeleton_extra_placeholder extra-top-head %} -{% end_skeleton_extra_placeholder %} -{% endblock %} - -{% block extra_scripts %} -{% if portal_agent_url and portal_agent_title %} - -{% endif %} - - -{% if not no_extra_js %} - -{% endif %} -{% skeleton_extra_placeholder extra-head %} -{% end_skeleton_extra_placeholder %} -{% endblock %} - -{% block bodyattrs %} -data-api-root="{{ site_base }}/api/" -{% if check_badges %}data-check-badges="true"{% endif %} -{% if page.picture %}data-picture="{{site_base}}{{page.picture.url}}"{% endif %} -{% skeleton_extra_placeholder extra-body-args %} -{% end_skeleton_extra_placeholder %} -{% endblock %} - -{% block bodyclasses %}template-neutre page-{{ page.slug }} {% if pages %}section-{{pages.0.slug}}{% endif %} {% skeleton_extra_placeholder extra-body-class %} {% if user.is_authenticated %}authenticated-user{% else %}anonymous-user{% endif %} {% end_skeleton_extra_placeholder %} {% if page.picture %}has-picture{% endif %} {% endblock %} - -{% block title %} - {% if render_skeleton %}{% skeleton_extra_placeholder title %}{% firstof page_title site_title %}{% end_skeleton_extra_placeholder %}{% else %}{{page.title}}{% endif %}{% endblock %} - -{% block header-top %} -{% endblock %} -{% block header-title %} -{% comment %} into #top {% endcomment %} -{% placeholder "headerlogo" name="Logo haut" %} -{% placeholder "headertitle" name="Titre haut" %} -{% endblock %} -{% block user-info %} -{% endblock %} - -{% block nav %} - -{% endblock %} - -{% block messages %} -{{ block.super }} -{% placeholder "messages" %} -{% endblock %} - -{% block content %} - {% block combo-content %} - {% block page-content %} - {% block sidebar %}{% endblock %} -
- {% block columns-top %}{% endblock %} -
- {% block columns %} - {% trans "Content" as name %} - {% placeholder "content" name=name %} - {% endblock %} -
- {% block columns-bottom %}{% endblock %} -
- {% endblock %} - {% endblock %} -{% endblock %} - -{% block footer %} - {% trans "Footer" as name %} - {% placeholder "footer" acquired=True name=name %} -{% endblock %} diff --git a/templates/variants/hautes-alpes-2018/prepare-template.py b/templates/variants/hautes-alpes-2018/prepare-template.py deleted file mode 100644 index 46d3701b..00000000 --- a/templates/variants/hautes-alpes-2018/prepare-template.py +++ /dev/null @@ -1,73 +0,0 @@ -#! /usr/bin/env python - -import os -import subprocess -import re -import sys -from lxml import etree -from lxml.html import html_parser - - -FILENAME = os.path.join('tmp.html') - -if os.path.exists(FILENAME): - os.unlink(FILENAME) - -URL = 'https://www.hautes-alpes.fr/5448-services-en-ligne.htm' -subprocess.call(['wget', '--quiet', '-O', FILENAME, '--convert-links', URL]) -content = open(FILENAME).read().strip() -if len(content) < 500: - sys.exit(0) - -root = etree.fromstring(content, parser=html_parser) - -for script in root.xpath('//script'): - # remove all google related tags - if script.text and 'google' in script.text or 'google' in script.attrib.get('src', ''): - parent = script.getparent() - parent.remove(script) - -# remove title and breadcrumb -for element in ('title', 'nav[@id="ariane"]', 'div[@id="cookie_cnil"]'): - for useless in root.xpath('//%s' % element): - parent = useless.getparent() - parent.remove(useless) - -# clear "corps" container to put content into it -for main in root.xpath('//main[@id="corps"]'): - main.clear() - main.attrib['id'] = 'corps' - -content = etree.tostring(root, method='html', pretty_print=True) - -# remove all references to downloaded temporary file -content = content.replace(FILENAME, '') - -# remove copy of jquery -content = re.sub('', '{% block global_title %}{% endblock %}\n') - -content = content.replace('', '{% block head %}{% endblock %}') - -content = content.replace( - '
', - '''
-{% block nav %}{% endblock %} -{% block messages %}{% endblock %} -{% block local-content-wrapper %} -{% endblock %}''', -) - -content = content.replace('', '{% block local-body-bottom %}{% endblock %}') - -content = content.replace("SERVER_ROOT = '/'", 'SERVER_ROOT="//www.hautes-alpes.fr/"') - -content = content.replace( - '
', '
{% block user-info %}{% endblock %}' -) - -open(os.path.join('.', 'base-theme.html'), 'w').write(content) diff --git a/templates/variants/hautes-alpes-2018/theme.html b/templates/variants/hautes-alpes-2018/theme.html deleted file mode 100644 index 0c2e5d46..00000000 --- a/templates/variants/hautes-alpes-2018/theme.html +++ /dev/null @@ -1,65 +0,0 @@ -{% extends 'base-theme.html' %} -{% load gadjo i18n static combo %} - -{% block global_title %} -{% firstof global_title "Hautes-Alpes le département" %} {% block title %}{% endblock %} -{% endblock %} - -{% block head %} - {% if meta_robots %} - - {% elif environment_label %} - - {% endif %} - {% block extra_top_head %} - {% endblock %} - {{ media }} - - {% block extra_css %} - {% endblock %} - {% block extra_scripts %} - {% endblock %} -{% endblock %} - -{% block bodyargs %}class="touch-ok {% block bodyclasses %}{% endblock %}" {% block bodyattrs %}{% endblock %}{% endblock %} - -{% block nav %} - -{% endblock %} - -{% block messages %} -{% if messages %} -
-
    - {% for message in messages %} - {{ message }} - {% endfor %} -
-
-{% endif %} -{% endblock %} - -{% block local-content-wrapper %} -
-
-
- {% block content %} - {% endblock %} -
-
-{% endblock %} - -{% block local-body-bottom %} - {% if environment_label %}{{ environment_label }}{% endif %} - Retour en haut de page - {% include "includes/tracking.html" %} -{% endblock %} diff --git a/templates/variants/hautes-alpes-2018/theme.orig.html b/templates/variants/hautes-alpes-2018/theme.orig.html deleted file mode 120000 index 6ed1d868..00000000 --- a/templates/variants/hautes-alpes-2018/theme.orig.html +++ /dev/null @@ -1 +0,0 @@ -../../theme.html \ No newline at end of file