{% extends "base.html" %} {% import "_icons.html" as icons with context %} {% block content %}

{{ t('site.drafts') }}

{% if total %}

{{ t('drafts.count', n=total) }}{% if review_count %} {{ t('drafts.to_review', n=review_count) }}{% endif %}

{% endif %}
{{ icons.icon('plus') }}{{ t('site.new') }}
{# server.workspaces: the list belongs to this browser's workspace; the link opens it anywhere. #} {% if workspace_token %}
{{ t('workspace.title') }} {{ t('workspace.text') }} {{ request.base_url }}w/{{ workspace_token }}
{% endif %}
{% if total %} {% endif %} {% if rows %}
{% for r in rows %} {# The whole row opens the draft (app.js); the title link does without JavaScript. #} {% endfor %}
{{ t('jobs.document') }} {{ t('index.lang') }} {{ t('jobs.status') }} {{ t('drafts.col.todo') }} {{ t('jobs.created') }} {{ t('drafts.col.actions') }}
{{ r.title }}{% if r.job.config.mode == 'decision' %}{{ t('drafts.decision') }}{% endif %} {# The pipeline joins the source line only where it is a choice (new.html). #} {% set pipeline = t.get('condition.short.' ~ r.job.config.condition, r.job.config.condition) if r.job.config.condition != 'P2' or settings.server.offer_pipelines else '' %} {% if r.source_line or pipeline %}{{ r.source_line }}{% if r.source_line and pipeline %} · {% endif %}{{ pipeline }}{% endif %} {{ r.language }}{% if r.job.config.level %} · {{ r.job.config.level }}{% endif %} {{ t('status.' ~ r.job.status) }} {% if r.status_note %}{{ r.status_note }}{% endif %} {# One line of what is left to do: what blocks publication and what is undecided, "Ready to export" when nothing, "Review complete" when done. #} {% if r.has_checks %} {% if r.complete %}{{ icons.sev('present') }}{{ t('drafts.todo.complete') }} {% elif r.blocking or r.undecided %} {% if r.blocking %}{{ icons.sev('error') }}{{ t('drafts.todo.blocking', n=r.blocking) }}{% endif %} {% if r.undecided %}{{ t('drafts.todo.decide', n=r.undecided) }}{% endif %} {% else %}{{ icons.sev('present') }}{{ t('drafts.todo.ready') }}{% endif %} {% else %}{{ t('drafts.not_yet') }}{% endif %}
{% if matching > rows | length or filtered %}{{ t('drafts.shown', shown=rows | length, total=total) }}{% else %}{{ t('drafts.count', n=total) }}{% endif %} {{ t('drafts.newest_first') }}
{% elif total %}

{{ t('drafts.no_match') }}

{% else %}

{{ t('drafts.empty.title') }}

{{ t('site.tagline', country=t.country) }}

{{ t('drafts.how.title') }}

  1. {{ t('drafts.how.read') }}
  2. {{ t('drafts.how.check', count=rule_count) }}
  3. {{ t('drafts.how.judge') }}
  4. {{ t('drafts.how.review') }}

{{ t('drafts.empty.text') }}

{# New draft is the button in the page header. This one is in view only while the card of example letters below is hidden (app.js). #} {% if examples %}
{% endif %}
{% endif %}
{# The example letters as a card of mini-cards, the interface language's first (pages.featured_examples): the title and the short description in the letter's language, then its language and sender. The cross hides the card for good in this browser (the hint mechanism of _hint.html, name "examples"); the button in the empty state above shows it again. #} {% if not total and examples %}

{{ t('drafts.samples.title') }}

{{ t('drafts.samples.text') }}
{% endif %} {# The API's documentation pages exist when server.api_docs is on. #}

Leicht·Facile {{ version }}. {{ t('site.footer') }}{% if settings.server.api_docs %} API{% endif %}

{% endblock %}