summaryrefslogtreecommitdiff
path: root/talermerchantdemos
diff options
context:
space:
mode:
Diffstat (limited to 'talermerchantdemos')
-rw-r--r--talermerchantdemos/blog/templates/base.html.j272
l---------talermerchantdemos/blog/templates/footer.html.j21
l---------talermerchantdemos/blog/templates/language-switcher.html.j21
l---------talermerchantdemos/blog/templates/menu.html.j21
-rw-r--r--talermerchantdemos/donations/templates/base.html.j273
l---------talermerchantdemos/donations/templates/footer.html.j21
l---------talermerchantdemos/donations/templates/language-switcher.html.j21
l---------talermerchantdemos/donations/templates/menu.html.j21
-rw-r--r--talermerchantdemos/landing/templates/base.html.j272
l---------talermerchantdemos/landing/templates/footer.html.j21
-rw-r--r--talermerchantdemos/landing/templates/index.html.j22
l---------talermerchantdemos/landing/templates/language-switcher.html.j21
l---------talermerchantdemos/landing/templates/menu.html.j21
-rw-r--r--talermerchantdemos/survey/templates/base.html.j272
l---------talermerchantdemos/survey/templates/footer.html.j21
l---------talermerchantdemos/survey/templates/language-switcher.html.j21
l---------talermerchantdemos/survey/templates/menu.html.j21
-rw-r--r--talermerchantdemos/templates/language-switcher.html.j212
18 files changed, 37 insertions, 278 deletions
diff --git a/talermerchantdemos/blog/templates/base.html.j2 b/talermerchantdemos/blog/templates/base.html.j2
index 65f8461..c4935f1 100644
--- a/talermerchantdemos/blog/templates/base.html.j2
+++ b/talermerchantdemos/blog/templates/base.html.j2
@@ -24,45 +24,7 @@
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='pure.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='demo.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='navbar.css') }}" />
- <style>
- .warn {
- background-color: #aa393977;
- padding: 1em;
- }
- @keyframes hoveranim {
- from {left:0;}
- to {left:1vw;}
- }
- @keyframes hoveranimrevert {
- from {left:1vw;}
- to {left:0;}
- }
- .notice {
- border-radius: 1em;
- background: #0333;
- border-left: 0.3em solid #033;
- padding-left: 1em;
- padding-top: 0.5em;
- padding-bottom: 0.5em;
- margin-top: 2em;
- margin-bottom: 2em;
- }
- .notice {
- position: relative;
- left: 0;
- animation-name: hoveranimrevert;
- animation-duration: 1s;
- }
- .notice:hover {
- left: 1vw;
- animation-name: hoveranim;
- animation-duration: 1s;
- }
- #main a:link, #main a:visited, #main a:hover, #main a:active {
- color: black;
- }
- </style>
-
+ <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='torsten.css') }}" />
{% block styles %}{% endblock %}
{% block scripts %}{% endblock %}
</head>
@@ -78,41 +40,13 @@
}}
</p>
</header>
- <div style="display:flex; flex-direction: column;" class="navcontainer">
- <nav class="demolist">
- <a href="{{ env('TALER_ENV_URL_INTRO', '#') }}">{{gettext("Introduction")}}</a>
- <a href="{{ env('TALER_ENV_URL_BANK', '#') }}">{{gettext("Bank")}}</a>
- <a href="{{ env('TALER_ENV_URL_MERCHANT_BLOG', '#') }}">{{gettext("Essay Shop")}}</a>
- <a href="{{ env('TALER_ENV_URL_MERCHANT_DONATIONS', '#') }}">{{gettext("Donations")}}</a>
- <a href="{{ env('TALER_ENV_URL_MERCHANT_SURVEY', '#') }}" class="active">{{gettext("Tipping/Survey")}}</a>
- <!-- a href="{{ env('TALER_ENV_URL_BACKOFFICE', '#') }}">{{gettext("Back-office")}}</a -->
- <span class="right">
- {{ gettext("English [en]") }}
- <!-- <input type="checkbox"> -->
- <div class="nav">
- <br>
- <!--<hr style="width: 100%;">-->
- {% if lang != 'en' %}
- <a href="{{ self_localized('en') }}" class="navbtn">English [en]</a><br>
- {% endif %}
- {% if lang != 'de' %}
- <a href="{{ self_localized('de') }}" class="navbtn">Deutsch [de]</a><br>
- {% endif %}
- </div>
- </span>
- </nav>
- </div>
+ {% from 'templates/menu.html.j2' import menu with context %} {{ menu('blog') }}
<section id="main" class="content">
{% block main %}
This is the main content of the page.
{% endblock %}
- <hr />
- <div>
- <p>{{ gettext('You can learn more about GNU Taler on our main <a href="{site}">website</a>.').format(site="https://taler.net/") }}</p>
- <div style="flex-grow:1"></div>
- <p>Copyright &copy; 2014&mdash;2020 Taler Systems SA</p>
- </div>
+ {% include 'templates/footer.html.j2' %}
</section>
</body>
</html>
diff --git a/talermerchantdemos/blog/templates/footer.html.j2 b/talermerchantdemos/blog/templates/footer.html.j2
new file mode 120000
index 0000000..028b093
--- /dev/null
+++ b/talermerchantdemos/blog/templates/footer.html.j2
@@ -0,0 +1 @@
+../../templates/footer.html.j2 \ No newline at end of file
diff --git a/talermerchantdemos/blog/templates/language-switcher.html.j2 b/talermerchantdemos/blog/templates/language-switcher.html.j2
new file mode 120000
index 0000000..6423c5c
--- /dev/null
+++ b/talermerchantdemos/blog/templates/language-switcher.html.j2
@@ -0,0 +1 @@
+../../templates/language-switcher.html.j2 \ No newline at end of file
diff --git a/talermerchantdemos/blog/templates/menu.html.j2 b/talermerchantdemos/blog/templates/menu.html.j2
new file mode 120000
index 0000000..b9575ea
--- /dev/null
+++ b/talermerchantdemos/blog/templates/menu.html.j2
@@ -0,0 +1 @@
+../../templates/menu.html.j2 \ No newline at end of file
diff --git a/talermerchantdemos/donations/templates/base.html.j2 b/talermerchantdemos/donations/templates/base.html.j2
index f3b1359..307705f 100644
--- a/talermerchantdemos/donations/templates/base.html.j2
+++ b/talermerchantdemos/donations/templates/base.html.j2
@@ -21,45 +21,7 @@
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='pure.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='demo.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='navbar.css') }}" />
- <style>
- .warn {
- background-color: #aa393977;
- padding: 1em;
- }
- @keyframes hoveranim {
- from {left:0;}
- to {left:1vw;}
- }
- @keyframes hoveranimrevert {
- from {left:1vw;}
- to {left:0;}
- }
- .notice {
- border-radius: 1em;
- background: #0333;
- border-left: 0.3em solid #033;
- padding-left: 1em;
- padding-top: 0.5em;
- padding-bottom: 0.5em;
- margin-top: 2em;
- margin-bottom: 2em;
- }
- .notice {
- position: relative;
- left: 0;
- animation-name: hoveranimrevert;
- animation-duration: 1s;
- }
- .notice:hover {
- left: 1vw;
- animation-name: hoveranim;
- animation-duration: 1s;
- }
- #main a:link, #main a:visited, #main a:hover, #main a:active {
- color: black;
- }
- </style>
-
+ <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='torsten.css') }}" />
{% block styles %}{% endblock %}
{% block scripts %}{% endblock %}
</head>
@@ -74,42 +36,13 @@
}}
</p>
</header>
-
- <div style="display:flex; flex-direction: column;" class="navcontainer">
- <nav class="demolist">
- <a href="{{ env('TALER_ENV_URL_INTRO', '#') }}">{{gettext("Introduction")}}</a>
- <a href="{{ env('TALER_ENV_URL_BANK', '#') }}">{{gettext("Bank")}}</a>
- <a href="{{ env('TALER_ENV_URL_MERCHANT_BLOG', '#') }}">{{gettext("Essay Shop")}}</a>
- <a href="{{ env('TALER_ENV_URL_MERCHANT_DONATIONS', '#') }}" class="active>">{{gettext("Donations")}}</a>
- <a href="{{ env('TALER_ENV_URL_MERCHANT_SURVEY', '#') }}">{{gettext("Tipping/Survey")}}</a>
- <!-- a href="{{ env('TALER_ENV_URL_BACKOFFICE', '#') }}">{{gettext("Back-office")}}</a -->
- <span class="right">
- {{ gettext("English [en]") }}
- <!-- <input type="checkbox"> -->
- <div class="nav">
- <br>
- <!--<hr style="width: 100%;">-->
- {% if lang != 'en' %}
- <a href="/en/" class="navbtn">English [en]</a><br>
- {% endif %}
- {% if lang != 'de' %}
- <a href="/de/" class="navbtn">Deutsch [de]</a><br>
- {% endif %}
- </div>
- </span>
- </nav>
- </div>
+ {% from 'templates/menu.html.j2' import menu with context %} {{ menu('donations') }}
<section id="main" class="content">
{% block main %}
This is the main content of the page.
{% endblock %}
- <hr />
- <div>
- <p>{{ gettext('You can learn more about GNU Taler on our main <a href="{site}">website</a>.').format(site="https://taler.net/") }}</p>
- <div style="flex-grow:1"></div>
- <p>Copyright &copy; 2014&mdash;2020 Taler Systems SA</p>
- </div>
+ {% include 'templates/footer.html.j2' %}
</section>
</body>
</html>
diff --git a/talermerchantdemos/donations/templates/footer.html.j2 b/talermerchantdemos/donations/templates/footer.html.j2
new file mode 120000
index 0000000..028b093
--- /dev/null
+++ b/talermerchantdemos/donations/templates/footer.html.j2
@@ -0,0 +1 @@
+../../templates/footer.html.j2 \ No newline at end of file
diff --git a/talermerchantdemos/donations/templates/language-switcher.html.j2 b/talermerchantdemos/donations/templates/language-switcher.html.j2
new file mode 120000
index 0000000..6423c5c
--- /dev/null
+++ b/talermerchantdemos/donations/templates/language-switcher.html.j2
@@ -0,0 +1 @@
+../../templates/language-switcher.html.j2 \ No newline at end of file
diff --git a/talermerchantdemos/donations/templates/menu.html.j2 b/talermerchantdemos/donations/templates/menu.html.j2
new file mode 120000
index 0000000..b9575ea
--- /dev/null
+++ b/talermerchantdemos/donations/templates/menu.html.j2
@@ -0,0 +1 @@
+../../templates/menu.html.j2 \ No newline at end of file
diff --git a/talermerchantdemos/landing/templates/base.html.j2 b/talermerchantdemos/landing/templates/base.html.j2
index c88ee90..2114347 100644
--- a/talermerchantdemos/landing/templates/base.html.j2
+++ b/talermerchantdemos/landing/templates/base.html.j2
@@ -21,45 +21,7 @@
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='pure.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='demo.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='navbar.css') }}" />
- <style>
- .warn {
- background-color: #aa393977;
- padding: 1em;
- }
- @keyframes hoveranim {
- from {left:0;}
- to {left:1vw;}
- }
- @keyframes hoveranimrevert {
- from {left:1vw;}
- to {left:0;}
- }
- .notice {
- border-radius: 1em;
- background: #0333;
- border-left: 0.3em solid #033;
- padding-left: 1em;
- padding-top: 0.5em;
- padding-bottom: 0.5em;
- margin-top: 2em;
- margin-bottom: 2em;
- }
- .notice {
- position: relative;
- left: 0;
- animation-name: hoveranimrevert;
- animation-duration: 1s;
- }
- .notice:hover {
- left: 1vw;
- animation-name: hoveranim;
- animation-duration: 1s;
- }
- #main a:link, #main a:visited, #main a:hover, #main a:active {
- color: black;
- }
- </style>
-
+ <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='torsten.css') }}" />
{% block styles %}{% endblock %}
{% block scripts %}{% endblock %}
</head>
@@ -74,41 +36,13 @@
}}
</p>
</header>
- <div style="display:flex; flex-direction: column;" class="navcontainer">
- <nav class="demolist">
- <a href="{{ env('TALER_ENV_URL_INTRO', '#') }}" class="active">{{gettext("Introduction")}}</a>
- <a href="{{ env('TALER_ENV_URL_BANK', '#') }}">{{gettext("Bank")}}</a>
- <a href="{{ env('TALER_ENV_URL_MERCHANT_BLOG', '#') }}">{{gettext("Essay Shop")}}</a>
- <a href="{{ env('TALER_ENV_URL_MERCHANT_DONATIONS', '#') }}">{{gettext("Donations")}}</a>
- <a href="{{ env('TALER_ENV_URL_MERCHANT_SURVEY', '#') }}">{{gettext("Tipping/Survey")}}</a>
- <!-- a href="{{ env('TALER_ENV_URL_BACKOFFICE', '#') }}">{{gettext("Back-office")}}</a -->
- <span class="right">
- {{ gettext("English [en]") }}
- <!-- <input type="checkbox"> -->
- <div class="nav">
- <br>
- <!--<hr style="width: 100%;">-->
- {% if lang != 'en' %}
- <a href="/en/" class="navbtn">English [en]</a><br>
- {% endif %}
- {% if lang != 'de' %}
- <a href="/de/" class="navbtn">Deutsch [de]</a><br>
- {% endif %}
- </div>
- </span>
- </nav>
- </div>
+ {% from 'templates/menu.html.j2' import menu with context %} {{ menu('landing') }}
<section id="main" class="content">
{% block main %}
This is the main content of the page.
{% endblock %}
- <hr />
- <div>
- <p>{{ gettext('You can learn more about GNU Taler on our main <a href="{site}">website</a>.').format(site="https://taler.net/") }}</p>
- <div style="flex-grow:1"></div>
- <p>Copyright &copy; 2014&mdash;2020 Taler Systems SA</p>
- </div>
+ {% include 'templates/footer.html.j2' %}
</section>
</body>
</html>
diff --git a/talermerchantdemos/landing/templates/footer.html.j2 b/talermerchantdemos/landing/templates/footer.html.j2
new file mode 120000
index 0000000..028b093
--- /dev/null
+++ b/talermerchantdemos/landing/templates/footer.html.j2
@@ -0,0 +1 @@
+../../templates/footer.html.j2 \ No newline at end of file
diff --git a/talermerchantdemos/landing/templates/index.html.j2 b/talermerchantdemos/landing/templates/index.html.j2
index 399dd25..f005279 100644
--- a/talermerchantdemos/landing/templates/index.html.j2
+++ b/talermerchantdemos/landing/templates/index.html.j2
@@ -66,7 +66,7 @@
<p>
{{
gettext("Websites can give tips to visitors for completing tasks.") + "<br>" +
- gettext("You can earn some {currency} coins by filling in our <a href="{url}">survey</a>.").format(url=merchant_survey_url,currency=merchant_currency)
+ gettext('You can earn some {currency} coins by filling in our <a href="{url}">survey</a>.').format(url=merchant_survey_url,currency=merchant_currency)
}}
</p>
</article>
diff --git a/talermerchantdemos/landing/templates/language-switcher.html.j2 b/talermerchantdemos/landing/templates/language-switcher.html.j2
new file mode 120000
index 0000000..6423c5c
--- /dev/null
+++ b/talermerchantdemos/landing/templates/language-switcher.html.j2
@@ -0,0 +1 @@
+../../templates/language-switcher.html.j2 \ No newline at end of file
diff --git a/talermerchantdemos/landing/templates/menu.html.j2 b/talermerchantdemos/landing/templates/menu.html.j2
new file mode 120000
index 0000000..b9575ea
--- /dev/null
+++ b/talermerchantdemos/landing/templates/menu.html.j2
@@ -0,0 +1 @@
+../../templates/menu.html.j2 \ No newline at end of file
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 @@
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='pure.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='demo.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='navbar.css') }}" />
- <style>
- .warn {
- background-color: #aa393977;
- padding: 1em;
- }
- @keyframes hoveranim {
- from {left:0;}
- to {left:1vw;}
- }
- @keyframes hoveranimrevert {
- from {left:1vw;}
- to {left:0;}
- }
- .notice {
- border-radius: 1em;
- background: #0333;
- border-left: 0.3em solid #033;
- padding-left: 1em;
- padding-top: 0.5em;
- padding-bottom: 0.5em;
- margin-top: 2em;
- margin-bottom: 2em;
- }
- .notice {
- position: relative;
- left: 0;
- animation-name: hoveranimrevert;
- animation-duration: 1s;
- }
- .notice:hover {
- left: 1vw;
- animation-name: hoveranim;
- animation-duration: 1s;
- }
- #main a:link, #main a:visited, #main a:hover, #main a:active {
- color: black;
- }
- </style>
-
+ <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='torsten.css') }}" />
{% block styles %}{% endblock %}
{% block scripts %}{% endblock %}
</head>
@@ -74,41 +36,13 @@
}}
</p>
</header>
- <div style="display:flex; flex-direction: column;" class="navcontainer">
- <nav class="demolist">
- <a href="{{ env('TALER_ENV_URL_INTRO', '#') }}">{{gettext("Introduction")}}</a>
- <a href="{{ env('TALER_ENV_URL_BANK', '#') }}">{{gettext("Bank")}}</a>
- <a href="{{ env('TALER_ENV_URL_MERCHANT_BLOG', '#') }}" class="active">{{gettext("Essay Shop")}}</a>
- <a href="{{ env('TALER_ENV_URL_MERCHANT_DONATIONS', '#') }}">{{gettext("Donations")}}</a>
- <a href="{{ env('TALER_ENV_URL_MERCHANT_SURVEY', '#') }}">{{gettext("Tipping/Survey")}}</a>
- <!-- a href="{{ env('TALER_ENV_URL_BACKOFFICE', '#') }}">{{gettext("Back-office")}}</a -->
- <span class="right">
- {{ gettext("English [en]") }}
- <!-- <input type="checkbox"> -->
- <div class="nav">
- <br>
- <!--<hr style="width: 100%;">-->
- {% if lang != 'en' %}
- <a href="/en/" class="navbtn">English [en]</a><br>
- {% endif %}
- {% if lang != 'de' %}
- <a href="/de/" class="navbtn">Deutsch [de]</a><br>
- {% endif %}
- </div>
- </span>
- </nav>
- </div>
+ {% from 'templates/menu.html.j2' import menu with context %} {{ menu('survey') }}
<section id="main" class="content">
{% block main %}
This is the main content of the page.
{% endblock %}
- <hr />
- <div>
- <p>{{ gettext('You can learn more about GNU Taler on our main <a href="{site}">website</a>.').format(site="https://taler.net/") }}</p>
- <div style="flex-grow:1"></div>
- <p>Copyright &copy; 2014&mdash;2020 Taler Systems SA</p>
- </div>
+ {% include 'templates/footer.html.j2' %}
</section>
</body>
</html>
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
diff --git a/talermerchantdemos/templates/language-switcher.html.j2 b/talermerchantdemos/templates/language-switcher.html.j2
new file mode 100644
index 0000000..22eef42
--- /dev/null
+++ b/talermerchantdemos/templates/language-switcher.html.j2
@@ -0,0 +1,12 @@
+ <span class="right">
+ {{ gettext("English [en]") }}
+ <div class="nav">
+ <br>
+ {% if lang != 'en' %}
+ <a href="/en/" class="navbtn">English [en]</a><br>
+ {% endif %}
+ {% if lang != 'de' %}
+ <a href="/de/" class="navbtn">Deutsch [de]</a><br>
+ {% endif %}
+ </div>
+</span>