{# One connection's key jobs, newest first. Shared by the detail and key pages. Imported `with context` by both, so `t` reaches the macros: a partial that built its own English headings would be the one place in the console that stayed English. #} {% import "_bank.html" as bank with context %} {% macro job_table(jobs) %} {% if jobs %} {% for job in jobs %} {% endfor %}
{{ t('jobs.requested') }}{{ t('jobs.operation') }} {{ t('jobs.by') }}{{ t('jobs.outcome') }}
{{ job.created_at | moment }} {{ job.action.value }} {{ job.requested_by_id }} {{ job.state.value }} {% if job.return_code %}
{{ job.return_code }} {{ bank.words(job.report_text) }}{% endif %} {% if job.last_error %}
{{ job.last_error }}{% endif %}
{% else %}

{{ t('jobs.empty') }}

{% endif %} {% endmacro %} {% macro key_table(keys) %} {% for key in keys %} {% endfor %}
{{ t('keys.version') }}{{ t('keys.generation') }} {{ t('keys.status') }}{{ t('keys.fingerprint') }} {{ t('keys.private_half') }}
{{ key.version.value }} {{ key.generation }} {{ key.status }} {{ key.fingerprint | fingerprint }} {{ t('keys.sealed') if key.has_private else t('keys.public_only') }}
{% endmacro %}