{% from "macros.html" import account_notes %} {# The catch-up's one estimate (design section 24.8), rendered by the server in the reader's language. Each row carries its figures, and the overview's row its own, so the page's script recomputes the totals exactly as `CatchUpEstimate.totals` does while rows are unticked. Repository names and reasons come from the hosting service and git, so they are only ever autoescaped text. #} {% macro amount(tokens, usd) -%} ~{{ tokens|tokens }} {{ _("tokens") }}{% if usd is not none %} · ~{{ usd|dollars }}{% endif %} {%- endmacro %} {% macro attribute(value) -%}{{ "" if value is none else value }}{%- endmacro %}

{{ _("Before catching up") }}

{{ _("Every repository’s facts are refreshed. Writing the ticked repositories’ guides will call:") }}

{% for line in estimate.lines %} {% endfor %} {% if estimate.overview %} {% endif %}
{{ _("Repository") }}{{ _("Expected") }}{{ _("At most") }}
{% if line.first_guide %} {{ _("first guide") }}{% endif %} {{ amount(line.estimate.expected_tokens, line.estimate.expected_usd) }} {{ amount(line.estimate.maximum_tokens, line.estimate.maximum_usd) }}
{{ _("The team overview, while two ticked repositories may write a digest") }} {{ amount(estimate.overview.tokens_each, estimate.overview.cost_each_usd) }}
{% set totals = estimate.totals %} {% set expected_tokens %}{{ totals.expected_tokens|tokens }}{% endset %} {% set maximum_tokens %}{{ totals.maximum_tokens|tokens }}{% endset %} {% set expected_usd %}{{ totals.expected_usd|dollars }}{% endset %} {% set maximum_usd %}{{ totals.maximum_usd|dollars }}{% endset %}

{% trans expected=expected_tokens, maximum=maximum_tokens %}Expected: ~{{ expected }} tokens; at most ~{{ maximum }}.{% endtrans %} {% trans expected=expected_usd, maximum=maximum_usd %}At API prices: ~{{ expected }}, at most {{ maximum }}.{% endtrans %} {% trans budget=estimate.budget_usd|dollars %}The catch-up stops starting calls at the team’s budget of {{ budget }}.{% endtrans %}

{% if estimate.failed %}

{{ _("These repositories won’t be caught up, since their refresh failed:") }}

{% endif %} {{ account_notes(estimate.sign_ins, estimate.plan_usage) }}