diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-05-27 14:12:35 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-05-27 14:12:35 +0200 |
commit | cc37eb61c15f0d31775b3d3d88ae02777b35bd7a (patch) | |
tree | 0d58e37f62333435ca2a4e402f30a4b2d57b6ee5 /template | |
parent | 851416c94731e4ff77c0f5e214a5a2b71e7071fe (diff) | |
download | auditor-cc37eb61c15f0d31775b3d3d88ae02777b35bd7a.tar.gz auditor-cc37eb61c15f0d31775b3d3d88ae02777b35bd7a.tar.bz2 auditor-cc37eb61c15f0d31775b3d3d88ae02777b35bd7a.zip |
update build scripts
Diffstat (limited to 'template')
-rw-r--r-- | template/index.html.j2 | 218 |
1 files changed, 163 insertions, 55 deletions
diff --git a/template/index.html.j2 b/template/index.html.j2 index fbd1218..f6720bb 100644 --- a/template/index.html.j2 +++ b/template/index.html.j2 @@ -1,61 +1,141 @@ <!DOCTYPE html> -<html lang="en" data-taler-nojs="true"> -<head profile="http://www.w3.org/2005/10/profile"> - <meta charset="utf-8"/> - <title>{{ _("{curr} Auditor").format(curr=conf['currency']) }}</title> - <link rel="stylesheet" type="text/css" href="{{ url('static/pure.css') }}" /> - <link rel="stylesheet" type="text/css" href="{{ url('static/demo.css') }}" /> - <link rel="stylesheet" type="text/css" href="{{ url('static/taler-fallback.css') }}" id="taler-presence-stylesheet" /> - <link rel="icon" type="image/png" href="{{ url('static/favicon-taler.ico') }}" /> +<html lang="{{ lang }}"> + <head> + <meta charset="utf-8"/> + <title>{{ _("{curr} Auditor").format(curr=conf['currency']) }}</title> + <script> + /* + @licstart The following is the entire license notice for the + JavaScript code in this page. + Copyright (C) 2014, 2015, 2016, 2020, 2021 Taler Systems SA - <style type="text/css"> - a[disabled="true"] { - pointer-events: none; - color: grey; - } + The JavaScript code in this page is free software: you can + redistribute it and/or modify it under the terms of the GNU + General Public License (GNU GPL) as published by the Free Software + Foundation, either version 3 of the License, or (at your option) + any later version. The code is distributed WITHOUT ANY WARRANTY; + without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU GPL for more details. - .bluebox { - background-color: #C2C6FF; - border: solid; - border-radius: 5px; - padding: 0.5em; - } - .greenbox { - background-color: #5EFF64; - border: solid; - border-radius: 5px; - padding: 0.5em; - } - .graybox { - background-color: #DDDDDD; - border: solid; - border-radius: 5px; - padding: 0.5em; - } - </style> + As additional permission under GNU GPL version 3 section 7, you + may distribute non-source (e.g., minimized or compacted) forms of + that code without the copy of the GNU GPL normally required by + section 4, provided you include this license notice and a URL + through which recipients can access the Corresponding Source. - <script> - function addAuditor() { - taler.addAuditor({ - url: "{{ conf['auditor_url'] }}", - currency: "{{ conf['currency'] }}", - auditorPub: "{{ conf['auditor_pub'] }}", - expirationStamp: (new Date(2027, 1)).getTime(), - }); - } - </script> -</head> + @licend The above is the entire license notice + for the JavaScript code in this page. + */ + </script> + <link rel="alternate" hreflang="en" href="{{ self_localized('en') }}" /> + <link rel="alternate" hreflang="ar" href="{{ self_localized('ar') }}" /> + <link rel="alternate" hreflang="zh-hant" href="{{ self_localized('zh_Hant') }}" /> + <link rel="alternate" hreflang="cs" href="{{ self_localized('cs') }}" /> + <link rel="alternate" hreflang="fr" href="{{ self_localized('fr') }}" /> + <link rel="alternate" hreflang="de" href="{{ self_localized('de') }}" /> + <link rel="alternate" hreflang="hi" href="{{ self_localized('hi') }}" /> + <link rel="alternate" hreflang="hu" href="{{ self_localized('hu') }}" /> + <link rel="alternate" hreflang="it" href="{{ self_localized('it') }}" /> + <link rel="alternate" hreflang="ja" href="{{ self_localized('ja') }}" /> + <link rel="alternate" hreflang="ko" href="{{ self_localized('ko') }}" /> + <link rel="alternate" hreflang="pt" href="{{ self_localized('pt') }}" /> + <link rel="alternate" hreflang="pt-br" href="{{ self_localized('pt_BR') }}" /> + <link rel="alternate" hreflang="ru" href="{{ self_localized('ru') }}" /> + <link rel="alternate" hreflang="es" href="{{ self_localized('es') }}" /> + <link rel="alternate" hreflang="sv" href="{{ self_localized('sv') }}" /> + <link rel="alternate" hreflang="tr" href="{{ self_localized('tr') }}" /> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <!-- Bootstrap core CSS --> + <link href="{{ url_dist('bootstrap@4.6.0/bootstrap.min.css') }}" rel="stylesheet"> + <!-- Custom styles for this template --> + <link href="{{ url_static('styles.css') }}" rel="stylesheet"> + <script src="{{ url_dist('bootstrap@4.6.0/jquery-3.5.1.slim.min.js') }}"></script> + <script src="{{ url_dist('bootstrap@4.6.0/bootstrap.bundle.min.js') }}"></script> + <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> + <!--[if lt IE 9]> + <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> + <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> + <![endif]--> + <link rel="icon" type="image/png" href="{{ url('static/favicon-taler.ico') }}" /> + </head> <body> - <div class="demobar"> - <h1><span class="it">{{ _("{curr} Auditor").format(curr=conf['currency']) }}</span></h1> - <p> - {{ _("This is an auditor for the {curr} currency.").format(curr=conf['currency']) }} - </p> - </div> + <header class="demobar" style="display: flex; flex-direction: row; justify-content: space-between;"> + <div style="max-width: 50em; margin-left: 2em;"> + <h1><span class="it">{{ _("{curr} Auditor").format(curr=conf['currency']) }}</span></h1> + <p> + {{ _("This is an auditor for the {curr} currency.").format(curr=conf['currency']) }} + </p> + </div> + </header> + + <nav class="demolist"> + <div class="nav-item dropdown"> + <button class="btn btn-dark dropdown-toggle" + type="button" + id="dropdownMenu1" + data-toggle="dropdown" + aria-haspopup="true" + aria-expanded="true"> + <img src="{{ url_static('images/languageicon.svg') }}" + height="35" + alt="[{{lang}}]" /> + {{ lang_full }} [{{ lang }}] + </button> + <ul class="dropdown-menu" aria-labelledby="dropdownMenu1"> + {% if lang != 'en' %} + <li><a class="dropdown-item" href="{{ self_localized('en') }}">English [en]</a></li> + {% endif %} + {% if lang != 'ar' %} + <li><a class="dropdown-item" href="{{ self_localized('ar') }}">Arabic [ar]</a></li> + {% endif %} +<!-- {% if lang != 'zh_Hant' %} + <li><a class="dropdown-item" href="{{ self_localized('zh_Hant') }}">Chinese [zh]</a></li> + {% endif %} --> + {% if lang != 'fr' %} + <li><a class="dropdown-item" href="{{ self_localized('fr') }}">Français [fr]</a></li> + {% endif %} + {% if lang != 'de' %} + <li><a class="dropdown-item" href="{{ self_localized('de') }}">Deutsch [de]</a></li> + {% endif %} +<!-- {% if lang != 'hi' %} + <li><a class="dropdown-item" href="{{ self_localized('hi') }}">Hindi [hi]</a></li> + {% endif %} --> + {% if lang != 'it' %} + <li><a class="dropdown-item" href="{{ self_localized('it') }}">Italiano [it]</a></li> + {% endif %} + {% if lang != 'ja' %} + <li><a class="dropdown-item" href="{{ self_localized('ja') }}">Japanese [ja]</a></li> + {% endif %} + {% if lang != 'ko' %} + <li><a class="dropdown-item" href="{{ self_localized('ko') }}">Korean [ko]</a></li> + {% endif %} +<!-- {% if lang != 'pt' %} + <li><a class="dropdown-item" href="{{ self_localized('pt') }}">Português [pt]</a></li> + {% endif %} --> +<!-- {% if lang != 'pt_BR' %} + <li><a class="dropdown-item" href="{{ self_localized('pt_BR') }}">Português (Brazil) [pt]</a></li> + {% endif %} --> + {% if lang != 'ru' %} + <li><a class="dropdown-item" href="{{ self_localized('ru') }}">Ру́сский язы́к [ru]</a></li> + {% endif %} + {% if lang != 'es' %} + <li><a class="dropdown-item" href="{{ self_localized('es') }}">Español [es]</a></li> + {% endif %} + {% if lang != 'sv' %} + <li><a class="dropdown-item" href="{{ self_localized('sv') }}">Svenska [sv]</a></li> + {% endif %} + {% if lang != 'tr' %} + <li><a class="dropdown-item" href="{{ self_localized('tr') }}">Türk [tr]</a></li> + {% endif %} + + </ul> + </div> + </nav> + <section id="main" class="content"> - <p style="color: black;"> + <p> {{ _("This is the Web site of the auditor for the {curr} currency.").format(curr=conf['currency']) }} {% trans %} In the GNU Taler system, an auditor is responsible for verifying @@ -77,20 +157,48 @@ {% endtrans %} </p> </div> - </section> - <footer id="footer"> - <div class="demobar"> +</section> + +<footer id="footer"> + <div class="container"> + <div class="row justify-content-center"> + <div class="col-12"> + <hr style="border-top: 1px solid #00000069; padding-bottom: 1em" /> + </div> + </div> + <div class="row"> + <div class="col-12 col-sm-4"> + <ul class="footer-list"> + <li><a href="{{ url_localized('contact.html') }}">{{ _("Contact") }}</a></li> + </ul> + </div> + <div class="col-12 col-sm-4"> + <ul class="footer-list"> + <li><a href="{{ url_localized('docs.html') }}">{{ _("Docs") }}</a> / + <a href="{{ url_localized('faq.html') }}">{{ _("FAQ") }}</a></li> + </ul> + </div> + <div class="col-12 col-sm-4"> + <ul class="footer-list"> + <li><a href="{{ url_localized('bibliography.html') }}">{{ _("Bibliography") }}</a></li> + </ul> + </div> + </div> + </div> + <div class="text-center mt-5"> <p> {{ _("GNU Taler is developed as part of the <a href='https://www.gnu.org/'>GNU project</a> for the GNU operating system.") }} <br> © <a href="https://gnunet.org/en/ev.html">GNUnet e.V.</a> {{_("and") }} - Taler Systems SA 2015-2020 + Taler Systems SA 2015-2021 <br> {{ _("We are grateful for support and free hosting of this site by <a href='https://www.bfh.ch/'>BFH</a>.") }} <br> {{ _("This page was created using <a href='https://www.gnu.org/'>Free Software</a> only.") }} + <br> + <a href="/javascript.html" data-jslicense="1">{{ _("JavaScript license information")}} </a> </p> </div> - </footer> +</footer> </body> </html> |