From 4c301b767ae8bf98e44b811eb060e4f5e69b24d4 Mon Sep 17 00:00:00 2001 From: magicfelix <felix@felix-zauberer.de> Date: Sun, 24 Jan 2021 20:16:33 +0100 Subject: [PATCH] Add license notice --- static/css/style.css | 4 ++++ templates/article.html | 4 +++- templates/page.html | 3 +++ templates/page_text.html | 3 +++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/static/css/style.css b/static/css/style.css index 58874f8..1d21275 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -50,6 +50,10 @@ ul.dropdown-menu > li.active > a { color: #f8f8f8; } +.licence { + text-align: center; +} + footer#main-footer { background: var(--teckids-secondary-light); color: #ffffff; diff --git a/templates/article.html b/templates/article.html index 1b1d13f..7789907 100644 --- a/templates/article.html +++ b/templates/article.html @@ -84,7 +84,9 @@ </div> </div> </section> - +{% if article.metadata.licence %} + <p class="licence">{{ LICENCETEXTS[article.lang] }} {{ article.metadata.licence }}.</p> +{% endif %} {% endblock content %} {% block sponsorstext %} diff --git a/templates/page.html b/templates/page.html index a5086ce..c1ff7e2 100644 --- a/templates/page.html +++ b/templates/page.html @@ -38,4 +38,7 @@ {{ page.content }} {% endif %} </section> + {% if page and page.metadata.licence %} + <p class="licence">{{ LICENCETEXTS["de"] }} {{ page.metadata.licence }}</p> + {% endif %} {% endblock content %} diff --git a/templates/page_text.html b/templates/page_text.html index 66161a2..3f86463 100644 --- a/templates/page_text.html +++ b/templates/page_text.html @@ -9,4 +9,7 @@ {% endif %} </div> </section> +{% if page and page.metadata.licence %} + <p class="licence">{{ LICENCETEXTS["de"] }} {{ page.metadata.licence }}</p> +{% endif %} {% endblock content %} -- GitLab