From 46dd63af682246c162423e37e0361e2d644c93e1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 12 Oct 2020 13:38:35 +0200 Subject: share menu and style sheets across demo pages (fixes #5704) --- talermerchantdemos/survey/templates/base.html.j2 | 72 +--------------------- talermerchantdemos/survey/templates/footer.html.j2 | 1 + .../survey/templates/language-switcher.html.j2 | 1 + talermerchantdemos/survey/templates/menu.html.j2 | 1 + 4 files changed, 6 insertions(+), 69 deletions(-) create mode 120000 talermerchantdemos/survey/templates/footer.html.j2 create mode 120000 talermerchantdemos/survey/templates/language-switcher.html.j2 create mode 120000 talermerchantdemos/survey/templates/menu.html.j2 (limited to 'talermerchantdemos/survey') diff --git a/talermerchantdemos/survey/templates/base.html.j2 b/talermerchantdemos/survey/templates/base.html.j2 index 2b424f1..734da6f 100644 --- a/talermerchantdemos/survey/templates/base.html.j2 +++ b/talermerchantdemos/survey/templates/base.html.j2 @@ -21,45 +21,7 @@ - - + {% block styles %}{% endblock %} {% block scripts %}{% endblock %} @@ -74,41 +36,13 @@ }}

- + {% from 'templates/menu.html.j2' import menu with context %} {{ menu('survey') }}
{% block main %} This is the main content of the page. {% endblock %} -
-
-

{{ gettext('You can learn more about GNU Taler on our main website.').format(site="https://taler.net/") }}

-
-

Copyright © 2014—2020 Taler Systems SA

-
+ {% include 'templates/footer.html.j2' %}
diff --git a/talermerchantdemos/survey/templates/footer.html.j2 b/talermerchantdemos/survey/templates/footer.html.j2 new file mode 120000 index 0000000..028b093 --- /dev/null +++ b/talermerchantdemos/survey/templates/footer.html.j2 @@ -0,0 +1 @@ +../../templates/footer.html.j2 \ No newline at end of file diff --git a/talermerchantdemos/survey/templates/language-switcher.html.j2 b/talermerchantdemos/survey/templates/language-switcher.html.j2 new file mode 120000 index 0000000..6423c5c --- /dev/null +++ b/talermerchantdemos/survey/templates/language-switcher.html.j2 @@ -0,0 +1 @@ +../../templates/language-switcher.html.j2 \ No newline at end of file diff --git a/talermerchantdemos/survey/templates/menu.html.j2 b/talermerchantdemos/survey/templates/menu.html.j2 new file mode 120000 index 0000000..b9575ea --- /dev/null +++ b/talermerchantdemos/survey/templates/menu.html.j2 @@ -0,0 +1 @@ +../../templates/menu.html.j2 \ No newline at end of file -- cgit v1.2.3