templates: do not assume optional services' presence in tenant conf (#75645)
gitea/publik-devinst/pipeline/head This commit looks good Details

This commit is contained in:
Paul Marillonnet 2023-03-21 11:09:01 +01:00
parent 446dc490f1
commit 4a6dd19739
1 changed files with 6 additions and 6 deletions

View File

@ -32,37 +32,37 @@
"template_name": "{{wcs_skeleton_filename}}",
"title": "Démarches"
}},
{% if tenants_conf['dev-passerelle'] %}
{% if 'dev-passerelle' in tenants_conf and tenants_conf['dev-passerelle'] %}
{"create-passerelle": {
"url": "https://{{tenants_conf['dev-passerelle']}}/",
"title": "Passerelle"
}},
{% endif %}
{% if tenants_conf['dev-fargo'] %}
{% if 'dev-fargo' in tenants_conf and tenants_conf['dev-fargo'] %}
{"create-fargo": {
"url": "https://{{tenants_conf['dev-fargo']}}/",
"title": "Porte-documents"
}},
{% endif %}
{% if tenants_conf['dev-chrono'] %}
{% if 'dev-chrono' in tenants_conf and tenants_conf['dev-chrono'] %}
{"create-chrono": {
"url": "https://{{tenants_conf['dev-chrono']}}/",
"title": "Agendas"
}},
{% endif %}
{% if tenants_conf['dev-bijoe'] %}
{% if 'dev-bijoe' in tenants_conf and tenants_conf['dev-bijoe'] %}
{"create-bijoe": {
"url": "https://{{tenants_conf['dev-bijoe']}}/",
"title": "Statistiques"
}},
{% endif %}
{% if tenants_conf['dev-welco'] %}
{% if 'dev-welco' in tenants_conf and tenants_conf['dev-welco'] %}
{"create-welco": {
"url": "https://{{tenants_conf['dev-welco']}}/",
"title": "Courrier"
}},
{% endif %}
{% if tenants_conf['dev-lingo'] %}
{% if 'dev-lingo' in tenants_conf and tenants_conf['dev-lingo'] %}
{"create-lingo": {
"url": "https://{{tenants_conf['dev-lingo']}}/",
"title": "Paiements"