Files
computer-playbook/roles/web-app-dashboard/templates/config.yaml.j2
kevinveenbirkenbachandClaude Opus 4.8 7c8a9bb352 fix(dashboard): quote every free-text scalar in the rendered config
The applications menu and the platform/company header interpolated operator and role free text as plain YAML scalars, so any description containing a colon-space broke the rendered config at the from_yaml parse in the branding-asset task; moodle variant 0 hit it as the only deploy combining an active dashboard with web-app-lam, whose description carries 'directories: managing'. All name, description, icon, url and title fields now render through to_json, which yields quoted scalars for arbitrary text, matching what to_nice_yaml already did for the cards block.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-18 13:03:24 +02:00

31 lines
921 B
Django/Jinja

{# The Linebreak here are intentional due to tab bugs #}
---
cards:
{{ portfolio_cards | to_nice_yaml(indent=2) }}
{% include 'menu/applications.yml.j2' %}
{% include 'menu/followus.yml.j2' %}
{% include 'menu/contact.yml.j2' %}
{% include 'menu/support.yml.j2' %}
platform:
titel: {{ service_provider.platform.titel | to_json }}
subtitel: {{ service_provider.platform.subtitel | to_json }}
logo:
source: {{ DASHBOARD_PLATFORM_LOGO_URL }}
favicon:
source: {{ DASHBOARD_PLATFORM_FAVICON_URL }}
company:
titel: {{ service_provider.company.titel | to_json }}
subtitel: {{ service_provider.company.slogan | to_json }}
logo:
source: {{ DASHBOARD_COMPANY_LOGO_URL }}
address:
{{ service_provider.company.address | to_nice_yaml(indent=4) | indent(4, true) }}
imprint_url: {{ service_provider.legal.imprint }}
navigation:
{% include 'menu/header.yml.j2' %}
{% include 'menu/footer.yml.j2' %}