{% extends "base.html" %} {% from "layout/icons.html" import icon %} {% from "macros.html" import team_digest, team_overview, team_overview_problem with context %} {# The past catch-ups page (design section 25.3), in the team server's shell: the range and its form, a calendar of the 53 weeks ending with `chosen.calendar`'s, drawn by the server as the Repository page's script draws its own (squares of 11 in cells of 14, shaded against the busiest day shown, left to right in every language), and the range's catch-ups, newest first, each folding. A day with a catch-up is a link to that day; no script is needed. Names and reasons come from services and records, so they are autoescaped and isolated in ; overviews and digests stay in English. #} {% block title %}{{ _("Past catch-ups") }}{% endblock %} {% block content %} {% set cell, left, top = 14, 30, 16 %}

{{ _("Team") }}

{{ _("Past catch-ups") }}

{% if problem %} {% endif %} {% if ever_caught_up and not problem %} {% set first %}{% endset %} {% set last %}{% endset %}

{% if chosen.first == chosen.last %}{{ first }}{% else %}{{ _("From %(start)s to %(end)s", start=first, end=last) }}{% endif %}

{# No `calendar`: showing a new range moves the calendar to it. #} {% endif %} {% if problem or ever_caught_up %} {# A refused date comes back in the form as typed (the query allows 10 characters), so the reader can correct it. #}
{% endif %}
{% if problem %} {# Nothing else: the range is not known, so there is no calendar or list. #} {% elif not ever_caught_up %}

{{ _("No catch-ups yet. Catching up from the team page fills this page.") }}

{{ _("Back to the team page") }}

{% else %}

{{ _("Days with a catch-up") }}

{{ _("53 weeks, a square per day, shaded by its catch-ups. A day with one links to it.") }}

{% for weekday in (0, 2, 4) %}{{ weekdays[weekday] }}{% endfor %} {%- for week in weeks %}{% set x = left + loop.index0 * cell %} {%- for day in week if not day.future %} {%- if day.day.weekday() == 0 and day.day.day <= 7 %}{{ months[day.day.month - 1] }}{% endif %} {%- set label = day_label(day) %}{# a plain string, escaped like any other #} {%- set square %}{% endset %} {%- if day.count %}{{ square }}{% else %}{{ square }}{% endif %} {%- endfor %} {%- endfor %}
{% if starts_before or ends_after %}
{% if starts_before %}

{{ _("The range starts before this calendar.") }}

{% endif %} {% if ends_after %}

{{ _("The range ends after this calendar.") }}

{% endif %}
{% endif %}
{% if earlier or later %}

{%- if earlier %}{{ _("Earlier") }}{% endif %} {%- if later %}{{ _("Later") }}{% endif -%}

{% endif %} {% if day_counts %}
{{ _("Days with a catch-up, as a table") }} {% for day, count in day_counts %}{% endfor %}
{{ _("Day") }}{{ _("Catch-ups") }}
{{ day.isoformat() }}{{ count }}
{% endif %}
{% if catch_ups %}
{% for past in catch_ups %}{% set number = past.record.id %}

{{ icon("chevron") }}

{% trans count=past.repositories|length %}{{ count }} repository caught up{% pluralize %}{{ count }} repositories caught up{% endtrans %}
{% if past.record.overview_problem %}

{{ _("Across the team") }}

{{ team_overview_problem(past.record.overview_problem) }}
{% elif past.overview %}

{{ _("Across the team") }}{% if past.overview_unread %} {{ _("unread") }}{% endif %}

{{ team_overview(past.overview, read_button=False, linked=repository_names) }}
{% endif %} {% for repository in past.repositories %}

{% if repository.followed %}{{ repository.repository }}{% else %}{{ repository.repository }} {{ _("No longer followed.") }}{% endif %}

{% if repository.followed and not repository.digests %}

{{ _("No digest from this catch-up to show.") }}

{% endif %} {% for digest in repository.digests %} {{ team_digest(digest, repository.target, read_button=False, unread=digest.id in repository.unread) }} {% endfor %}
{% endfor %} {% if past.failed or past.unticked %} {%- set failed_list %}{% for target, reason in past.failed.items() %}{% set repository %}{{ repository_names.get(target, target) }}{% endset %}{% set why %}{{ reason }}{% endset %}{{ _("%(repository)s (%(reason)s)", repository=repository, reason=why) }}{% if not loop.last %}, {% endif %}{% endfor %}{% endset %} {%- set unticked_list %}{% for target in past.unticked %}{{ repository_names.get(target, target) }}{% if not loop.last %}, {% endif %}{% endfor %}{% endset %} {%- set failed_part = _("Not caught up: %(repositories)s", repositories=failed_list) %} {%- set unticked_part = _("Left out: %(repositories)s", repositories=unticked_list) %}

{%- if past.failed and past.unticked %}{{ _("%(failed)s ยท %(left_out)s", failed=failed_part, left_out=unticked_part) }} {%- elif past.failed %}{{ failed_part }}{% else %}{{ unticked_part }}{% endif -%}

{% endif %}
{% endfor %}
{% if left_out %}

{% trans count=left_out %}{{ count }} more catch-up in this range isn't shown; a narrower range shows it.{% pluralize %}{{ count }} more catch-ups in this range aren't shown; a narrower range shows them.{% endtrans %}

{% endif %} {% else %}

{{ _("No catch-ups between these dates. Pick another day in the calendar.") }}

{% endif %} {% endif %}
{% endblock %}