{% 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.renamedFrom or req.query.redirectFrom %}
{% set fromPath = req.query.renamedFrom or req.query.redirectFrom %} {% if redirectFrom or req.query.redirectFrom %}
{% endif %} {% if req.query.renamedFrom %}
{% endif %}
{% set hasRedirectLink = redirectFrom or req.query.redirectFrom or req.query.withRedirect %} {% if user and not page.isDeleted() and hasRedirectLink %} {% endif %}
{% endif %} {% if req.query.duplicated and not page.isDeleted() %}
{% 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 %} {% if isTrashPage() %}
{% endif %} {% if !page %}
{% endif %}