{% if page && page.grant && 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 %}
'{{ page.grantedGroup.name | preventXss }}' only ({{ t('Browsing of this page is restricted') }})
{% endif %}
{% endif %}
{% if getConfig('crowi', 'customize:isEnabledStaleNotification') %}
{% if page && page.updatedAt && page.getContentAge() > 0 %}
{% if page.getContentAge() == 1 %}
{% elseif page.getContentAge() == 2 %}
{% else %}
{% endif %}
{{ t('page_page.notice.stale', { count: page.getContentAge() }) }}
{% endif %}
{% endif %}
{% if redirectFrom or req.query.renamed or req.query.redirectFrom %}
{% set fromPath = req.query.renamed or req.query.redirectFrom %}
{% if redirectFrom or req.query.redirectFrom %}
{{ t('Redirected') }}: {{ t('page_page.notice.redirected', req.sanitize(fromPath)) }}
{% endif %}
{% if req.query.renamed %}
{{ t('Moved') }}: {{ t('page_page.notice.moved', req.sanitize(fromPath)) }}
{% endif %}
{% if user and not page.isDeleted() %}
{% 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() %}
This page is in the trash
.
{% if page.isDeleted() %}
Deleted by
{{ page.lastUpdateUser.name }} at {{ page.updatedAt|datetz('Y-m-d H:i:s') }}
{% endif %}
{% if page.isDeleted() and user %}
{{ t('Put Back') }}
{{ t('Delete Completely') }}
{# /.float-right #}
{% endif %}
{% endif %}