Yuki Takei 6 лет назад
Родитель
Сommit
546c313ce4
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/server/views/widget/page_alerts.html

+ 2 - 1
src/server/views/widget/page_alerts.html

@@ -1,6 +1,7 @@
 <div class="row row-alerts">
 <div class="row row-alerts">
   <div class="col-xs-12">
   <div class="col-xs-12">
-    {% if page && page.grant %}
+    {% if page && page.grant && page.grant > 1 %}
+
       <p class="alert alert-inverse alert-grant">
       <p class="alert alert-inverse alert-grant">
       {% if page.grant == 2 %}
       {% if page.grant == 2 %}
         <i class="icon-fw icon-link"></i><strong>{{ consts.pageGrants[page.grant] }}</strong> ({{ t('Browsing of this page is restricted') }})
         <i class="icon-fw icon-link"></i><strong>{{ consts.pageGrants[page.grant] }}</strong> ({{ t('Browsing of this page is restricted') }})