{% from 'components/page-heading.html' import page_heading %} {% from 'components/pagination.html' import pagination %} {{ page_heading(t.handoff, t.handoff_subtitle) }} {% from 'components/read-error.html' import read_error with context %} {% if errors.get('handoff') %}{{ read_error(errors.handoff, t.handoff) }}{% endif %}
{% for record in collections.get('handoff', {}).get('items', []) %} {% if 'error' not in record %}
{{ t.handoff_saved }}{{ t.revision }} {{ record.revision }}

{{ record.objective|truncate(120, true) }}

{{ record.state[0].text|truncate(160, true) }}

{{ t.next_action }}

{{ record.next_action.text|truncate(160, true) if record.next_action else t.no_next_action }}

{{ t.read_handoff }}
{% endif %} {% else %} {% if not errors.get('handoff') %}

{{ t.handoff_empty }}

{{ t.handoff_empty_body }}

{% endif %} {% endfor %}
{{ pagination(collections.get('handoff', {}).get('pager'), t) }}