From: Philipp Spitzer Date: Tue, 12 Jul 2022 19:48:03 +0000 (+0200) Subject: Print "Nein" if there is no operator. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/commitdiff_plain/720bfc4e95768e02026fe96e49295b18d945d06c Print "Nein" if there is no operator. --- diff --git a/wrpylib/templates/sledrun_wikitext.txt b/wrpylib/templates/sledrun_wikitext.txt index da6bd88..6d7216e 100644 --- a/wrpylib/templates/sledrun_wikitext.txt +++ b/wrpylib/templates/sledrun_wikitext.txt @@ -61,7 +61,8 @@ {%- for info in info_web %} ** {{ weblink(info) }} {%- endfor %} -* '''Betreiber''': {{ operator }} +* '''Betreiber''': +{%- if has_operator is defined %} {% if has_operator %}{{ operator }}{% else %}''Nein''{% endif %}{% endif %} * '''Hütten''': {{ gastronomy_description }} {%- for info in gastronomy %} ** {% set space = joiner(" ") %}