From 1d83df845a442f45233cb40cbaa571e33adfd4e5 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 7 May 2021 13:05:49 +0200 Subject: site schema: only one site per www.yml --- template/docs.html.j2 | 34 ++++++++++++++++------------------ template/rss.xml.j2 | 48 +++++++++++++++++++++++------------------------- 2 files changed, 39 insertions(+), 43 deletions(-) (limited to 'template') diff --git a/template/docs.html.j2 b/template/docs.html.j2 index d60acc40..e19dddac 100644 --- a/template/docs.html.j2 +++ b/template/docs.html.j2 @@ -1,6 +1,5 @@ {% extends "common/base.j2" %} {% block body_content %} -{% for siteconfitem in siteconf %}
@@ -33,51 +32,51 @@
- +

{{ _("Merchant Backend Administration")}}

- {% trans docshost=siteconfitem['docshost'] %} + {% trans docshost=siteconf['docshost'] %} Tutorial and manual for operating a merchant. Also available as PDF. {% endtrans %}
- +

{{ _("Merchant API Tutorial") }}

{% trans %} Tutorial for processing Taler payments using the merchant backend API. {% endtrans %} - {{ gettext('Also available as PDF.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-merchant-api-tutorial.pdf") }} + {{ gettext('Also available as PDF.', link="https://" + siteconf['docshost'] + "/pdf/taler-merchant-api-tutorial.pdf") }}
- +

{{ _("Exchange")}}

{% trans %} Operator's manual for the GNU Taler exchange. {% endtrans %} - {{ gettext('Also available as PDF.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-exchange-manual.pdf") }} + {{ gettext('Also available as PDF.', link="https://" + siteconf['docshost'] + "/pdf/taler-exchange-manual.pdf") }}
- +

{{ _("Bank Integration") }}

{% trans %} Manual for tightly integrating Taler with banking applications. {% endtrans %} - {{ gettext('Also available as PDF.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-bank-manual.pdf") }} + {{ gettext('Also available as PDF.', link="https://" + siteconf['docshost'] + "/pdf/taler-bank-manual.pdf") }}
- +

{{ _("Wallet") }}

@@ -89,25 +88,25 @@
- +

{{ _("Back office") }}

{% trans %} Manual to run the back-office Web application. {% endtrans %} - {{ gettext('Also available as PDF.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-backoffice-manual.pdf") }} + {{ gettext('Also available as PDF.', link="https://" + siteconf['docshost'] + "/pdf/taler-backoffice-manual.pdf") }}
- +

{{ _("Merchant POS Terminal") }}

{% trans %} Manual for configuring and using the point of sale app. {% endtrans %} - {{ gettext('Also available as PDF.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-merchant-pos-terminal.pdf") }} + {{ gettext('Also available as PDF.', link="https://" + siteconf['docshost'] + "/pdf/taler-merchant-pos-terminal.pdf") }}
@@ -137,7 +136,7 @@
- +

{{ _("HTTP API")}}

@@ -147,14 +146,14 @@
- +

{{ _("Onboarding")}}

{% trans %} Description of our taler.net setup and how to contribute. {% endtrans %} - {{ gettext('Also available as PDF.', link="https://" + siteconfitem['docshost'] + "/pdf/developers-manual.pdf") }} + {{ gettext('Also available as PDF.', link="https://" + siteconf['docshost'] + "/pdf/developers-manual.pdf") }}
@@ -238,5 +237,4 @@
-{% endfor %} {% endblock body_content %} diff --git a/template/rss.xml.j2 b/template/rss.xml.j2 index b9a29f70..872e5513 100644 --- a/template/rss.xml.j2 +++ b/template/rss.xml.j2 @@ -20,29 +20,27 @@ #} - {% for siteconfitem in siteconf %} - - - {{ siteconfitem['rsstitle'] }} - {{ lang }} - {{ siteconfitem['rssdescr']|e }} - https://{{ siteconfitem['baseurl'] }}/ - {{ now }} - {% for newspostitem in newsposts %} - - https://{{ siteconfitem['baseurl'] }}/{{ lang }}{{ siteconfitem['newsloc'] }}{{ newspostitem['page'] }} - https://{{ siteconfitem['baseurl'] }}/{{ lang }}{{ siteconfitem['newsloc'] }}{{ newspostitem['page'] }} - {{ conv_date_rfc822(newspostitem["date"]) }} - {{ newspostitem['title']|e }} - - - {{ newspostitem['content'] }} - - ]]> - - - {% endfor %} - - {% endfor %} + + + {{ siteconf['rsstitle'] }} + {{ lang }} + {{ siteconf['rssdescr']|e }} + https://{{ siteconf['baseurl'] }}/ + {{ now }} + {% for newspostitem in newsposts %} + + https://{{ siteconf['baseurl'] }}/{{ lang }}{{ siteconf['newsloc'] }}{{ newspostitem['page'] }} + https://{{ siteconf['baseurl'] }}/{{ lang }}{{ siteconf['newsloc'] }}{{ newspostitem['page'] }} + {{ conv_date_rfc822(newspostitem["date"]) }} + {{ newspostitem['title']|e }} + + + {{ newspostitem['content'] }} + + ]]> + + + {% endfor %} + -- cgit v1.2.3