taler-merchant-demos

Python-based Frontends for the Demonstration Web site
Log | Files | Refs | Submodules | README | LICENSE

commit 69575fc3936772d8b2284863c22d2fc28cdd1832
parent 3d6d8fddcdd77931bc7331b2f74cfff79e0561ae
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 12 Oct 2020 14:24:34 +0200

add missing file

Diffstat:
M.gitignore | 1+
Atalermerchantdemos/templates/menu.html.j2 | 25+++++++++++++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -2,3 +2,4 @@ talermerchantdemos/static/*.css talermerchantdemos/static/navbar.css.map translations/de/LC_MESSAGES/messages.mo config.mk +*~ diff --git a/talermerchantdemos/templates/menu.html.j2 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 %}