|
|
@@ -14,16 +14,16 @@
|
|
|
{% endif %}
|
|
|
|
|
|
{% if getConfig('crowi', 'customize:isEnabledStaleNotification') %}
|
|
|
- {% if page && page.updatedAt && page.isStale() > 0 %}
|
|
|
- {% if page.isStale() == 1 %}
|
|
|
+ {% if page && page.updatedAt && page.getContentAge() > 0 %}
|
|
|
+ {% if page.getContentAge() == 1 %}
|
|
|
<div class="alert alert-info">
|
|
|
- {% elseif page.isStale() == 2 %}
|
|
|
+ {% elseif page.getContentAge() == 2 %}
|
|
|
<div class="alert alert-warning">
|
|
|
{% else %}
|
|
|
<div class="alert alert-danger">
|
|
|
{% endif %}
|
|
|
<i class="icon-fw icon-hourglass"></i>
|
|
|
- <strong>{{ t('page_page.notice.stale', { count: page.isStale() }) }}</strong>
|
|
|
+ <strong>{{ t('page_page.notice.stale', { count: page.getContentAge() }) }}</strong>
|
|
|
</div>
|
|
|
{% endif %}
|
|
|
{% endif %}
|