summaryrefslogtreecommitdiff
path: root/talermerchantdemos
diff options
context:
space:
mode:
Diffstat (limited to 'talermerchantdemos')
-rw-r--r--talermerchantdemos/templates/menu.html.j225
1 files changed, 25 insertions, 0 deletions
diff --git a/talermerchantdemos/templates/menu.html.j2 b/talermerchantdemos/templates/menu.html.j2
new file mode 100644
index 0000000..e029c4a
--- /dev/null
+++ b/talermerchantdemos/templates/menu.html.j2
@@ -0,0 +1,25 @@
+{% macro menu(active) -%}
+<div style="display:flex; flex-direction: column;" class="navcontainer">
+ <nav class="demolist">
+ <a href="{{ env('TALER_ENV_URL_INTRO', '#') }}"
+ {% if active == 'landing' %} class="active" {% endif %}
+ >{{gettext("Introduction")}}</a>
+ <a href="{{ env('TALER_ENV_URL_BANK', '#') }}"
+ {% if active == 'bank' %} class="active" {% endif %}
+ >{{gettext("Bank")}}</a>
+ <a href="{{ env('TALER_ENV_URL_MERCHANT_BLOG', '#') }}"
+ {% if active == 'blog' %} class="active" {% endif %}
+ >{{gettext("Essay Shop")}}</a>
+ <a href="{{ env('TALER_ENV_URL_MERCHANT_DONATIONS', '#') }}"
+ {% if active == 'donations' %} class="active" {% endif %}
+ >{{gettext("Donations")}}</a>
+ <a href="{{ env('TALER_ENV_URL_MERCHANT_SURVEY', '#') }}"
+ {% if active == 'survey' %} class="active" {% endif %}
+ >{{gettext("Tipping/Survey")}}</a>
+ <!-- a href="{{ env('TALER_ENV_URL_BACKOFFICE', '#') }}"
+ {% if active == 'backoffice' %} class="active" {% endif %}
+ >{{gettext("Back-office")}}</a -->
+ {% include 'templates/language-switcher.html.j2' %}
+ </nav>
+</div>
+{%- endmacro %}