{% if page && page.grant != 1 %}

{% if page.grant == 2 %} {{ consts.pageGrants[page.grant] }} ({{ t('Browsing of this page is restricted') }}) {% elseif page.grant == 4 %} {{ consts.pageGrants[page.grant] }} ({{ t('Browsing of this page is restricted') }}) {% elseif page.grant == 5 %} '{{ pageRelatedGroup.name | preventXss }}' only ({{ t('Browsing of this page is restricted') }}) {% endif %}

{% endif %} {% if page.isDeleted() %}
This page is in the trash.
Deleted by {{ page.lastUpdateUser.name }} at {{ page.updatedAt|datetz('Y-m-d H:i:s') }}
{% if user %} {# /.pull-right #} {% endif %}
{% endif %} {% if req.query.renamed and not page.isDeleted() %}
{{ t('Moved') }}: {{ t('page_page.notice.moved', req.sanitize(req.query.renamed)) }}
{% endif %} {% if req.query.redirectFrom and not page.isDeleted() %}
{{ t('Moved') }}: {{ t('page_page.notice.moved', req.sanitize(req.query.redirectFrom)) }} {% if user %} {% endif %}
{% endif %} {% if req.query.duplicated and not page.isDeleted() %}
{{ t('Duplicated') }}: {{ t('page_page.notice.duplicated', req.sanitize(req.query.duplicated)) }}
{% endif %} {% if req.query.unlinked %}
{{ t('Unlinked') }}: {{ t('page_page.notice.unlinked') }}
{% endif %} {% if page and not page.isLatestRevision() %}
{{ t('Warning') }}: {{ t('page_page.notice.version') }} {{ t('Show latest') }}
{% endif %} {% set dmessage = req.flash('dangerMessage') %} {% if dmessage.length %}
{{ dmessage }}
{% endif %}