{% 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 -%}