2.x
{{ status }} {% if percent is not null %}(<span class="datastore-status-details">{{ error|default(percent ~ '%') }}</span>){% endif %}