create template for translation banner
This commit is contained in:
parent
24d8a22f0e
commit
c42c1940b5
2 changed files with 52 additions and 0 deletions
|
@ -4,10 +4,14 @@
|
|||
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{{ page.content|raw }}
|
||||
<div id="content" style="background-color: {{ page.header.bgcolor }}">
|
||||
{% include 'partials/banner.html.twig' %}
|
||||
|
||||
{% for module in page.collection() %}
|
||||
{{ module.content|raw }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
|
48
templates/partials/banner.html.twig
Normal file
48
templates/partials/banner.html.twig
Normal file
|
@ -0,0 +1,48 @@
|
|||
{% if page.header.translation_banner.set == "true" %}
|
||||
<div class="translation_banner narrow">
|
||||
|
||||
{% if page.header.translation_banner.language == "French" %}
|
||||
<p>FRENCH This page was last updated on <b>{{ page.header.translation_banner.last_modified }}</b></br>
|
||||
Disroot's website translation is a community driven procces. We try to keep it as updated as we can.</br>
|
||||
If you want to help, check our <a href="https://git.disroot.org/Disroot/Website" target="_blank"> website's git repository</a></p>
|
||||
</p>
|
||||
|
||||
{% elseif page.header.translation_banner.language == "Spanish" %}
|
||||
<p>SPANISH This page was last updated on <b>{{ page.header.translation_banner.last_modified }}</b></br>
|
||||
Disroot's website translation is a community driven procces. We try to keep it as updated as we can.</br>
|
||||
If you want to help, check our <a href="https://git.disroot.org/Disroot/Website" target="_blank"> website's git repository</a></p>
|
||||
</p>
|
||||
|
||||
{% elseif page.header.translation_banner.language == "Italian" %}
|
||||
<p>ITALIAN This page was last updated on <b>{{ page.header.translation_banner.last_modified }}</b></br>
|
||||
Disroot's website translation is a community driven procces. We try to keep it as updated as we can.</br>
|
||||
If you want to help, check our <a href="https://git.disroot.org/Disroot/Website" target="_blank"> website's git repository</a></p>
|
||||
</p>
|
||||
|
||||
{% elseif page.header.translation_banner.language == "German" %}
|
||||
<p>GERMAN This page was last updated on <b>{{ page.header.translation_banner.last_modified }}</b></br>
|
||||
Disroot's website translation is a community driven procces. We try to keep it as updated as we can.</br>
|
||||
If you want to help, check our <a href="https://git.disroot.org/Disroot/Website" target="_blank"> website's git repository</a></p>
|
||||
</p>
|
||||
|
||||
{% elseif page.header.translation_banner.language == "Russian" %}
|
||||
<p>RUSSIAN This page was last updated on <b>{{ page.header.translation_banner.last_modified }}</b></br>
|
||||
Disroot's website translation is a community driven procces. We try to keep it as updated as we can.</br>
|
||||
If you want to help, check our <a href="https://git.disroot.org/Disroot/Website" target="_blank"> website's git repository</a></p>
|
||||
</p>
|
||||
|
||||
{% elseif page.header.translation_banner.language == "Portuguese" %}
|
||||
<p>PORTUGUESE This page was last updated on <b>{{ page.header.translation_banner.last_modified }}</b></br>
|
||||
Disroot's website translation is a community driven procces. We try to keep it as updated as we can.</br>
|
||||
If you want to help, check our <a href="https://git.disroot.org/Disroot/Website" target="_blank"> website's git repository</a></p>
|
||||
</p>
|
||||
|
||||
{% else %}
|
||||
<p>This page was last updated on <b>{{ page.header.translation_banner.last_modified }}</b></br>
|
||||
Disroot's website translation is a community driven procces. We try to keep it as updated as we can.</br>
|
||||
If you want to help, check our <a href="https://git.disroot.org/Disroot/Website" target="_blank"> website's git repository</a></p>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
{% endif %}
|
Loading…
Reference in a new issue