{% extends "dashboard_base.html" %} {% block title %}{{ t("troubleshoot-page-title") }} — calrs{% endblock %} {% block dashboard_content %} {% if no_event_types %}

{{ t("troubleshoot-heading") }}

{{ t("troubleshoot-empty", link='' ~ (t("troubleshoot-empty-link-label") | escape) ~ '') | safe }}

{% else %}

{{ t("troubleshoot-heading") }}

{{ t("troubleshoot-subtitle", title='' ~ (et_title | escape) ~ '') | safe }} ({{ t("troubleshoot-duration", minutes=duration) }}{% if buf_before %}, {{ t("troubleshoot-buffer-before", minutes=buf_before) }}{% endif %}{% if buf_after %}, {{ t("troubleshoot-buffer-after", minutes=buf_after) }}{% endif %}{% if min_notice %}, {{ t("troubleshoot-min-notice", minutes=min_notice) }}{% endif %}).

{{ date_label }}

{% if date_is_blocked is defined and date_is_blocked %}
{{ t("troubleshoot-blocked-override") }}
{% elif has_custom_hours is defined and has_custom_hours %}
{{ t("troubleshoot-custom-hours-active") }}
{% endif %} {# Legend #}
{{ t("troubleshoot-legend-available") }} {{ t("troubleshoot-legend-calendar-event") }} {{ t("troubleshoot-legend-booking") }} {{ t("troubleshoot-legend-resource") }} {{ t("troubleshoot-legend-outside") }} {{ t("troubleshoot-legend-buffer") }}
{# Timeline #}
{% for block in blocks %}
{% endfor %}
{# Hour labels #}
{% for marker in hour_markers %} {{ marker.label }} {% endfor %}
{# Breakdown #} {% if breakdown %}

{{ t("troubleshoot-blocked-slots") }}

{% for item in breakdown %}
{{ item.start }} – {{ item.end }} {{ item.reason }} {% if item.detail %}({{ item.detail }}){% endif %}
{% endfor %}
{% else %} {% if date_is_blocked is defined and date_is_blocked %}

{{ t("troubleshoot-none-date-blocked") }}

{% elif has_custom_hours is defined and has_custom_hours and not has_rules %}

{{ t("troubleshoot-none-custom-hours") }}

{% elif not has_rules %}

{{ t("troubleshoot-none-no-rules", date=date_label) }}

{% else %}

{{ t("troubleshoot-none-all-bookable") }}

{% endif %} {% endif %}
{# troubleshoot-content #}
{% endif %} {% endblock dashboard_content %}