From 712f2006b9b7c02aa643152b5bc58d8967cd6452 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Mon, 30 Nov 2020 23:24:10 +0100 Subject: [PATCH] Remove deprecated templates --- templates/page_with_button.html | 85 ------------------- templates/page_with_carousel.html | 101 ----------------------- templates/page_with_carousel_button.html | 37 --------- 3 files changed, 223 deletions(-) delete mode 100644 templates/page_with_button.html delete mode 100644 templates/page_with_carousel.html delete mode 100644 templates/page_with_carousel_button.html diff --git a/templates/page_with_button.html b/templates/page_with_button.html deleted file mode 100644 index e8d050a..0000000 --- a/templates/page_with_button.html +++ /dev/null @@ -1,85 +0,0 @@ -{% extends 'base.html' %} - -{% block content %} - - <div class="container title"> - <div class="row clearfix"> - <div class="column full"> - </div> - </div> - </div> - - <section class='page_content'> - <div class='container'> - <div class='row clearfix'> - <div class='column full'> - {% block data %} - {{ page.content }} - {% endblock data %} - </div> - </div> - </div> - </section> - - {% if page.modified and PAGES_DEBUG == true %} - <p> - <small>Created: {{ page.locale_date }}</small>, - <small>Last updated: {{ page.locale_modified }}</small> - </p> - {% endif %} - - - {% if PAGES_DEBUG == true %} - <div class='page_content debug'> - - <div> - <p>Debug stuff. Ignore</p> - <p> - url: {{ page.url }} <br/> - slug: {{ page.slug }}<br/> - {% if page.parent %} - page parent: {{ page.parent }}<br/> - page parent url: {{ page.parent.url }} <br/> - page parent title: {{ page.parent.title }} - {% endif %} - </p> - - <p>page parents</p> - <ul> - <li>page.parents.length: {{ page.parents|length }}</li> - {% for parent in page.parents %} - <li>url: {{ parent.url }} - title: {{ parent.title }}<br/> - <a href="/{{ parent.url }}">{{ parent.title }}</a></li> - {% endfor %} - </ul> - <p>page children</p> - <ul> - {% for child in page.children %} - <li>url: {{ child.url }} - title: {{ child.title }}<br/> - <a href="/{{ child.url }}">{{ child.title }}</a></li> - {% endfor %} - </ul> - </div> - </div> - {% endif %} -{% endblock %} - -{% block template_content_footer %} - -<div class="button-wrapper"> - <button type="button" class="btn btn-default btn-lg"> - {% set button = page.button.split('|') %} - <a href="{{ button[0] }}">{{ button[1] }}</a> - </button> -</div> - -{% endblock %} - -{% block sponsorstext %} -{{ SPONSORSTEXTS[page.lang] }} -{% endblock %} - -{% block languagefooter %} -{% import 'translations.html' as translations with context %} -{{ translations.translations_for(page) }} -{% endblock %} diff --git a/templates/page_with_carousel.html b/templates/page_with_carousel.html deleted file mode 100644 index 6e49f6b..0000000 --- a/templates/page_with_carousel.html +++ /dev/null @@ -1,101 +0,0 @@ -{% extends 'base.html' %} - -{% block template_content_head %} - <div id="myCarousel" class="carousel slide" data-ride="carousel"> - <div class="carousel-inner"> - {% for item in page.images %} - {% set image = item.split('|') %} - {% set text = image[0].split(';;') %} - <div class="item {% if loop.first %} active {% endif %}"> - <img class="center-block carousel-image" src="{{ image[1] }}" alt="{{ text[0] }}"> - <div class="carousel-caption d-none d-md-block"> - <h3 class="carousel-text-{{ text[1] or 'light' }}">{{ text[0] }}</h3> - </div> - </div> - {% endfor %} - </div> - <a class="left carousel-control" href="#myCarousel" data-slide="prev"> - <span class="glyphicon glyphicon-chevron-left"></span> - <span class="sr-only">Previous</span> - </a> - <a class="right carousel-control" href="#myCarousel" data-slide="next"> - <span class="glyphicon glyphicon-chevron-right"></span> - <span class="sr-only">Next</span> - </a> - - </div> - -{% endblock %} - -{% block content %} - - <div class="container title"> - <div class="row clearfix"> - <div class="column full"> - </div> - </div> - </div> - - <section class='page_content'> - <div class='container'> - <div class='row clearfix'> - <div class='column full'> - {% block data %} - {{ page.content }} - {% endblock data %} - </div> - </div> - </div> - </section> - - {% if page.modified and PAGES_DEBUG == true %} - <p> - <small>Created: {{ page.locale_date }}</small>, - <small>Last updated: {{ page.locale_modified }}</small> - </p> - {% endif %} - - - {% if PAGES_DEBUG == true %} - <div class='page_content debug'> - - <div> - <p>Debug stuff. Ignore</p> - <p> - url: {{ page.url }} <br/> - slug: {{ page.slug }}<br/> - {% if page.parent %} - page parent: {{ page.parent }}<br/> - page parent url: {{ page.parent.url }} <br/> - page parent title: {{ page.parent.title }} - {% endif %} - </p> - - <p>page parents</p> - <ul> - <li>page.parents.length: {{ page.parents|length }}</li> - {% for parent in page.parents %} - <li>url: {{ parent.url }} - title: {{ parent.title }}<br/> - <a href="/{{ parent.url }}">{{ parent.title }}</a></li> - {% endfor %} - </ul> - <p>page children</p> - <ul> - {% for child in page.children %} - <li>url: {{ child.url }} - title: {{ child.title }}<br/> - <a href="/{{ child.url }}">{{ child.title }}</a></li> - {% endfor %} - </ul> - </div> - </div> - {% endif %} -{% endblock %} - -{% block sponsorstext %} -{{ SPONSORSTEXTS[page.lang] }} -{% endblock %} - -{% block languagefooter %} -{% import 'translations.html' as translations with context %} -{{ translations.translations_for(page) }} -{% endblock %} diff --git a/templates/page_with_carousel_button.html b/templates/page_with_carousel_button.html deleted file mode 100644 index e22c3a7..0000000 --- a/templates/page_with_carousel_button.html +++ /dev/null @@ -1,37 +0,0 @@ -{% extends 'page_with_button.html' %} - -{% block template_content_head %} - <div id="myCarousel" class="carousel slide" data-ride="carousel"> - <div class="carousel-inner"> - {% for item in page.images %} - {% set image = item.split('|') %} - {% set text = image[0].split(';;') %} - <div class="item {% if loop.first %} active {% endif %}"> - <img class="center-block carousel-image" src="{{ image[1] }}" alt="{{ text[0] }}"> - <div class="carousel-caption d-none d-md-block"> - <h3 class="carousel-text-{{ text[1] or 'light' }}">{{ text[0] }}</h3> - </div> - </div> - {% endfor %} - </div> - <a class="left carousel-control" href="#myCarousel" data-slide="prev"> - <span class="glyphicon glyphicon-chevron-left"></span> - <span class="sr-only">Previous</span> - </a> - <a class="right carousel-control" href="#myCarousel" data-slide="next"> - <span class="glyphicon glyphicon-chevron-right"></span> - <span class="sr-only">Next</span> - </a> - - </div> - -{% endblock %} - -{% block sponsorstext %} -{{ SPONSORSTEXTS[page.lang] }} -{% endblock %} - -{% block languagefooter %} -{% import 'translations.html' as translations with context %} -{{ translations.translations_for(page) }} -{% endblock %} -- GitLab