{% extends "base.html" %} {% from "layout/icons.html" import icon %} {% from "macros.html" import team_digest, team_overview, team_overview_problem with context %} {# The team page (design section 24.7), in the guides' shell: the header line, the latest overview until it is read, a card per repository with something new, busiest first, and one line for the rest. Its sidebar lists the team page, the add-repositories screen, the past catch-ups and each followed repository. Every name comes from a service or from git, so it is autoescaped and isolated in ; guide content (highlights, the overview) stays in English. #} {% block title %}{{ team }}{% endblock %} {% block scripts %} {% endblock %} {% block content %}

{{ _("Team") }}

{{ team }}

{%- if last_catch_up %}{% set when %}{% endset %} {{ _("Since you last caught up: %(when)s", when=when) }} {%- else %} {{ _("You haven't caught up yet.") }} {%- endif %} {%- if has_caught_up %} {{ _("Past catch-ups") }} {%- endif %} {%- if with_merges %}{# none: a card's own line says what landed, commits without a merge included #} {% trans count=with_merges, total=rows|length %}{{ count }} of {{ total }} repositories has new merges{% pluralize %}{{ count }} of {{ total }} repositories have new merges{% endtrans %} {%- endif %}

{{ _("Add repositories") }}

{% if sources %}
    {% for source in sources %}
  • {{ service_names[source.service] }} · {{ source.source }} {% if source.follow == "all" %}{{ _("Every active repository") }}{% else %}{{ _("Chosen repositories") }}{% endif %}{% if source.left_out %}{% trans count=source.left_out|length %}, {{ count }} left out{% pluralize %}, {{ count }} left out{% endtrans %}{% endif %} {% if source.service ~ ":" ~ source.source in unreachable %}{{ _("couldn't be listed just now") }}{% endif %}
  • {% endfor %}
{% endif %}
{% if last_catch_up and last_catch_up.overview_problem %}

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

{{ team_overview_problem(last_catch_up.overview_problem) }}
{% elif overview %}

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

{{ team_overview(overview) }}
{% endif %}

{{ _("Repositories") }}

{% if rows %} {% if cards %}
{% for card in cards %}{% set row = card.row %}

{{ row.repository }}

{{ row.branch }}{% if row.signal.merges %} · {% trans count=row.signal.merges %}{{ count }} merge landed{% pluralize %}{{ count }} merges landed{% endtrans %}{% endif %}

{% if row.signal.commits %}{% set areas %}{{ row.signal.areas[:3] | join(", ") }}{% endset %}

{%- if row.signal.merges and row.signal.areas %}{% trans count=row.signal.merges, areas=areas %}Not caught up yet: {{ count }} merge touched {{ areas }}.{% pluralize %}Not caught up yet: {{ count }} merges touched {{ areas }}.{% endtrans %} {%- elif row.signal.merges %}{% trans count=row.signal.merges %}Not caught up yet: {{ count }} merge.{% pluralize %}Not caught up yet: {{ count }} merges.{% endtrans %} {%- elif row.signal.areas %}{% trans count=row.signal.commits, areas=areas %}Not caught up yet: {{ count }} commit touched {{ areas }}.{% pluralize %}Not caught up yet: {{ count }} commits touched {{ areas }}.{% endtrans %} {%- else %}{% trans count=row.signal.commits %}Not caught up yet: {{ count }} commit.{% pluralize %}Not caught up yet: {{ count }} commits.{% endtrans %}{% endif -%}

{% endif %} {% if failed.get(row.target) %}{% set reason %}{{ failed[row.target] }}{% endset %}

{{ _("Not caught up in the last catch-up: %(reason)s", reason=reason) }}

{% elif row.target in unticked %}

{{ _("Not caught up: you left it out of the last catch-up.") }}

{% endif %} {% for digest in card.digests %} {{ team_digest(digest, row.target) }} {% endfor %} {% if card.authors %}

{{ _("Merged by:") }} {% for author in card.authors %}{{ author }}{% if not loop.last %}, {% endif %}{% endfor %}

{% endif %}
{% endfor %}
{% endif %} {% if other_rows %}
    {% for row in other_rows %}
  • {% if row.served %}{{ row.repository }}{% else %}{{ row.repository }}{% endif %} {{ row.branch }} {% if not row.served %} {{ _("Not served") }} {{ row.reason }} {% elif row.reason %} {{ _("Couldn't be reached") }} {{ row.reason }} {% elif row.signal.updating %} {{ _("Updating") }} {% elif row.signal.updated_commit is none %} {{ _("Not updated yet") }} {% else %} {{ _("No guide yet") }} {{ _("Write its guide") }} {% if failed.get(row.target) %}{% set reason %}{{ failed[row.target] }}{% endset %} {{ _("Not caught up in the last catch-up: %(reason)s", reason=reason) }} {% elif row.target in unticked %} {{ _("Not caught up: you left it out of the last catch-up.") }} {% endif %} {% endif %}
  • {% endfor %}
{% endif %} {% if nothing_new %}

{{ _("Nothing new:") }} {% for row in nothing_new %}{{ row.repository }}{% if not loop.last %}, {% endif %}{% endfor %}

{% endif %} {% else %}

{{ _("No repositories yet. Add repositories to follow them here.") }}

{% endif %}
{% if stopped %}

{{ _("Archived, or no longer in their source") }}

{{ _("These aren't refreshed any more; their guides stay until you remove them.") }}

    {% for row in stopped %}
  • {% if row.served %}{{ row.repository }}{% else %}{{ row.repository }}{% endif %} {{ row.branch }}
  • {% endfor %}
{% endif %}
{# The catch-up's estimate and its steps (design section 24.8); the script fills both from the server's rendering. #}
{% endblock %}