Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
No results found
Show changes
Commits on Source (10)
...@@ -181,6 +181,16 @@ time.icon span { ...@@ -181,6 +181,16 @@ time.icon span {
max-height: 500px; max-height: 500px;
} }
.carousel-text-dark {
color: #000;
text-shadow: 1px 1px 3px #fff;
}
.carousel-text-light {
color: #fff;
text-shadow: 1px 1px 3px #000;
}
.button-wrapper { .button-wrapper {
text-align: center; text-align: center;
} }
......
...@@ -86,3 +86,12 @@ ...@@ -86,3 +86,12 @@
</section> </section>
{% endblock content %} {% endblock content %}
{% block sponsorstext %}
{{ SPONSORSTEXTS[article.lang] }}
{% endblock %}
{% block languagefooter %}
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
{% endblock %}
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<div class="row"> <div class="row">
<div class="col s12"> <div class="col s12">
<h3 id='sponsorheading' class="black-text">Sponsoren</h3> <h3 id='sponsorheading' class="black-text">Sponsoren</h3>
<p id="sponsortext" class="black-text">Wir bedanken uns bei unseren Sponsoren für die Unterstützung unserer Vereinsarbeit. Außerdem freuen wir uns immer über weitere Sponsoren, die ihr Engagement mit ihrem Logo hier bewerben möchten!</p> <p id="sponsortext" class="black-text">{% block sponsorstext %}{{ SPONSORSTEXTS["de"] }}{% endblock %}</p>
{% for image, url in SPONSOR_LOGOS %} {% for image, url in SPONSOR_LOGOS %}
<a href="{{ url }}"><img src="{{ image }}" href="{{ url }}" alt="{{ url }}" class="sponsorslogo" /></a> <a href="{{ url }}"><img src="{{ image }}" href="{{ url }}" alt="{{ url }}" class="sponsorslogo" /></a>
{% endfor %} {% endfor %}
...@@ -133,6 +133,7 @@ ...@@ -133,6 +133,7 @@
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
{% block languagefooter %}{% endblock %}
<div class="col s6"> <div class="col s6">
<p style="text-align: right"> <p style="text-align: right">
{% for text, link in MINIFOOTER_MENU %} {% for text, link in MINIFOOTER_MENU %}
......
...@@ -40,8 +40,6 @@ ...@@ -40,8 +40,6 @@
<div class="row clearfix"> <div class="row clearfix">
<div class="column full"> <div class="column full">
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(page) }}
</div> </div>
</div> </div>
</div> </div>
...@@ -102,3 +100,12 @@ ...@@ -102,3 +100,12 @@
{% endblock content %} {% endblock content %}
{% block sponsorstext %}
{{ SPONSORSTEXTS[page.lang] }}
{% endblock %}
{% block languagefooter %}
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(page) }}
{% endblock %}
...@@ -21,8 +21,6 @@ ...@@ -21,8 +21,6 @@
{% block content_title %} {% block content_title %}
<h1>Recent News</h1> <h1>Recent News</h1>
<div class='feed-text'><a href="https://teckids.edugit.io/feeds/all.atom.xml">Feed <i class='fa fa-rss'></i></a></div> <div class='feed-text'><a href="https://teckids.edugit.io/feeds/all.atom.xml">Feed <i class='fa fa-rss'></i></a></div>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(page) }}
{% endblock %} {% endblock %}
</div> </div>
</div> </div>
......
{% 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 %}
...@@ -5,10 +5,11 @@ ...@@ -5,10 +5,11 @@
<div class="carousel-inner"> <div class="carousel-inner">
{% for item in page.images %} {% for item in page.images %}
{% set image = item.split('|') %} {% set image = item.split('|') %}
{% set text = image[0].split(';;') %}
<div class="item {% if loop.first %} active {% endif %}"> <div class="item {% if loop.first %} active {% endif %}">
<img class="center-block carousel-image" src="{{ image[1] }}" alt="{{ image[0] }}"> <img class="center-block carousel-image" src="{{ image[1] }}" alt="{{ text[0] }}">
<div class="carousel-caption d-none d-md-block"> <div class="carousel-caption d-none d-md-block">
<h3>{{ image[0] }}</h3> <h3 class="carousel-text-{{ text[1] or 'light' }}">{{ text[0] }}</h3>
</div> </div>
</div> </div>
{% endfor %} {% endfor %}
...@@ -31,8 +32,6 @@ ...@@ -31,8 +32,6 @@
<div class="container title"> <div class="container title">
<div class="row clearfix"> <div class="row clearfix">
<div class="column full"> <div class="column full">
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(page) }}
</div> </div>
</div> </div>
</div> </div>
...@@ -91,3 +90,12 @@ ...@@ -91,3 +90,12 @@
</div> </div>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block sponsorstext %}
{{ SPONSORSTEXTS[page.lang] }}
{% endblock %}
{% block languagefooter %}
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(page) }}
{% endblock %}
{% extends 'base.html' %} {% extends 'page_with_button.html' %}
{% block template_content_head %} {% block template_content_head %}
<div id="myCarousel" class="carousel slide" data-ride="carousel"> <div id="myCarousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner"> <div class="carousel-inner">
{% for item in page.images %} {% for item in page.images %}
{% set image = item.split('|') %} {% set image = item.split('|') %}
{% set text = image[0].split(';;') %}
<div class="item {% if loop.first %} active {% endif %}"> <div class="item {% if loop.first %} active {% endif %}">
<img class="center-block carousel-image" src="{{ image[1] }}" alt="{{ image[0] }}"> <img class="center-block carousel-image" src="{{ image[1] }}" alt="{{ text[0] }}">
<div class="carousel-caption d-none d-md-block"> <div class="carousel-caption d-none d-md-block">
<h3>{{ image[0] }}</h3> <h3 class="carousel-text-{{ text[1] or 'light' }}">{{ text[0] }}</h3>
</div> </div>
</div> </div>
{% endfor %} {% endfor %}
...@@ -26,79 +27,11 @@ ...@@ -26,79 +27,11 @@
{% endblock %} {% endblock %}
{% block content %} {% block sponsorstext %}
{{ SPONSORSTEXTS[page.lang] }}
<div class="container title">
<div class="row clearfix">
<div class="column full">
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(page) }}
</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 %} {% endblock %}
{% block template_content_footer %} {% block languagefooter %}
{% import 'translations.html' as translations with context %}
<div class="button-wrapper"> {{ translations.translations_for(page) }}
<button type="button" class="btn btn-default btn-lg">
{% set button = page.button.split('|') %}
<a href="{{ button[0] }}">{{ button[1] }}</a>
</button>
</div>
{% endblock %} {% endblock %}