{% extends "base.html" %} {% block title %}{{ _('briefing.page_title') }}{% endblock %} {% block content %}

{{ _('briefing.heading') }}

{{ _('briefing.subtitle') }}

{{ _('briefing.topics_heading', week=week, count=week_pages|length) }}

{{ _('briefing.timeframe', start=start_date.strftime('%d.%m.%Y'), end=end_date.strftime('%d.%m.%Y')) }}

{% if week_pages %}
{% else %}

📭

{{ _('briefing.no_entries') }}

{% endif %}

{{ _('briefing.email_heading') }}

{{ _('briefing.email_setup_button') }}

{{ _('briefing.email_subtitle') }}

{% if smtp_cfg.smtp_user or default_smtp_user %}
{{ _('briefing.email_active_prefix') }} {{ smtp_cfg.smtp_host }}:{{ smtp_cfg.smtp_port }} ({{ smtp_cfg.smtp_user or default_smtp_user }})
{% else %}
{{ _('briefing.email_no_creds') }}
{% endif %} {% if success_msg %}
{{ _('briefing.email_success_prefix') }} {{ success_msg }}
{% endif %} {% if error_msg %}
{{ _('briefing.email_error_prefix') }} {{ error_msg }}
{% endif %}
{% if email_simulation %}

{{ _('briefing.email_draft_heading') }}

{{ _('briefing.email_to_label') }} {{ email_simulation.to }}
{{ _('briefing.email_subject_label') }} {{ email_simulation.subject }}
{{ email_simulation.html|safe }}
{% endif %}
{% endblock %}