{% macro autosave_status(autosave_allowed, draft) %} {%- set autosave_status='no-changes' if autosave_allowed else '' -%} {%- if autosave_allowed and draft %}{% set autosave_status='draft' %}{% endif -%}
автосохранение отключено
нет изменений
изменено
сохранение
блокировка утеряна
сохранён черновик
ошибки при сохранении
сохранено
{%- if draft -%}
авторы черновика: {% for author in draft.admins %} {{- author.name }}{% if not loop.last %}, {% endif %} {%- endfor -%}
{%- endif -%} {% endmacro %}