diff options
author | Florian Dold <florian@dold.me> | 2021-04-21 21:35:55 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-04-21 21:35:55 +0200 |
commit | c8730857293c694449110ec289210e7ec4f32aa4 (patch) | |
tree | 603d856acacc17d8352fb91ef50bf6bbbd1b14b7 /talermerchantdemos/templates/common-base.html.j2 | |
parent | 2b84f3bd5de3a500b63193924bea2f3dfd0c9afd (diff) | |
download | taler-merchant-demos-c8730857293c694449110ec289210e7ec4f32aa4.tar.gz taler-merchant-demos-c8730857293c694449110ec289210e7ec4f32aa4.tar.bz2 taler-merchant-demos-c8730857293c694449110ec289210e7ec4f32aa4.zip |
make language and active page available in all templates
Diffstat (limited to 'talermerchantdemos/templates/common-base.html.j2')
-rw-r--r-- | talermerchantdemos/templates/common-base.html.j2 | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/talermerchantdemos/templates/common-base.html.j2 b/talermerchantdemos/templates/common-base.html.j2 index ff8d655..17e27c6 100644 --- a/talermerchantdemos/templates/common-base.html.j2 +++ b/talermerchantdemos/templates/common-base.html.j2 @@ -38,13 +38,43 @@ {% endblock %} </div> </header> - {% from 'menu.html.j2' import menu with context %} {{ menu('landing') }} + + + <div style="display:flex; flex-direction: column;" class="navcontainer"> + <nav class="demolist"> + <a href="{{ env('TALER_ENV_URL_INTRO', '#') + getlang() + '/' }}" + {% if getactive() == 'landing' %} class="active" {% endif %} + >{{gettext("Introduction")}}</a> + <a href="{{ env('TALER_ENV_URL_BANK', '#') + getlang() + '/' }}" + {% if getactive() == 'bank' %} class="active" {% endif %} + >{{gettext("Bank")}}</a> + <a href="{{ env('TALER_ENV_URL_MERCHANT_BLOG', '#') + getlang() + '/' }}" + {% if getactive() == 'blog' %} class="active" {% endif %} + >{{gettext("Essay Shop")}}</a> + <a href="{{ env('TALER_ENV_URL_MERCHANT_DONATIONS', '#') + getlang() + '/' }}" + {% if getactive() == 'donations' %} class="active" {% endif %} + >{{gettext("Donations")}}</a> + <a href="{{ env('TALER_ENV_URL_MERCHANT_SURVEY', '#') + getlang() + '/' }}" + {% if getactive() == 'survey' %} class="active" {% endif %} + >{{gettext("Tipping/Survey")}}</a> + {% include 'language-switcher.html.j2' %} + </nav> + </div> <section id="main" class="content"> {% block main %} This is the main content of the page. {% endblock %} - {% include 'footer.html.j2' %} + <hr /> + <div> + <p> + {{ + gettext('You can learn more about GNU Taler on our main <a href="{site}">website</a>.').format(site="https://taler.net/" + getlang() + "/") + }} + </p> + <div style="flex-grow:1"></div> + <p>Copyright © 2014—2020 Taler Systems SA</p> + </div> </section> </body> </html> |