From 0f0b19018b3f2a89741c6e4ac0897991ec9d0306 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Tue, 17 Aug 2021 22:32:01 +0200 Subject: [PATCH] Show edit link in footer --- pelican_theme_teckids/templates/base.html | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/pelican_theme_teckids/templates/base.html b/pelican_theme_teckids/templates/base.html index 70f4c3f..14ce9a1 100644 --- a/pelican_theme_teckids/templates/base.html +++ b/pelican_theme_teckids/templates/base.html @@ -97,13 +97,6 @@ <main role="main"> <!-- Main Content --> {% block content %}{% endblock %} - <p class="licence"> - {% if article is defined %} - {{ LICENCETEXTS[article.lang|default(DEFAULT_LANG)] }} {{ article.metadata.licence|default(LICENCE_DEFAULT) }} - {% elif page is defined %} - {{ LICENCETEXTS[DEFAULT_LANG] }} {{ page.metadata.licence|default(LICENCE_DEFAULT) }} - {% endif %} - </p> </main> <!-- Sponsoren-Footer --> @@ -148,6 +141,22 @@ <p style="text-align: right"> {{ FOOTERTEXT }} </p> + <p class="licence"> + {% if article is defined %} + {{ LICENCETEXTS[article.lang|default(DEFAULT_LANG)] }} {{ article.metadata.licence|default(LICENCE_DEFAULT) }} + {% elif page is defined %} + {{ LICENCETEXTS[DEFAULT_LANG] }} {{ page.metadata.licence|default(LICENCE_DEFAULT) }} + {% endif %} + <br/> + {% if article is defined %} + <a href="{{ GITWEB_BASE }}/content/{{ article.relative_source_path }}">Edit in source repository</a> + {% elif page is defined %} + <a href="{{ GITWEB_BASE }}/content/{{ page.relative_source_path }}">Edit in source repository</a> + {% else %} + <a href="{{ GITWEB_BASE }}/content">Edit in source repository</a> + {% endif %} + </p> + </div> </div> </div> -- GitLab