Просмотр исходного кода

WIP: reconstruct layouts

* page alerts
Yuki Takei 8 лет назад
Родитель
Сommit
4433b7cc61
2 измененных файлов с 6 добавлено и 6 удалено
  1. 6 0
      lib/views/widget/page_alerts.html
  2. 0 6
      lib/views/widget/page_content.html

+ 6 - 0
lib/views/widget/page_alerts.html

@@ -53,5 +53,11 @@
     </div>
     {% endif %}
 
+    {% if not page.isLatestRevision() %}
+    <div class="alert alert-warning">
+      <strong>{{ t('Warning') }}: </strong> {{ t('page_page.notice.version') }}
+      <a href="{{ page.path }}"><i class="icon-fw icon-arrow-right-circle"></i>{{ t('Show latest') }}</a>
+    </div>
+    {% endif %}
   </div>
 </div>

+ 0 - 6
lib/views/widget/page_content.html

@@ -15,12 +15,6 @@
   <div class="tab-content">
 
     {% if page %}
-      {% if not page.isLatestRevision() %}
-      <div class="alert alert-warning">
-        <strong>{{ t('Warning') }}: </strong> {{ t('page_page.notice.version') }} <i class="fa fa-magic"></i> <a href="{{ page.path }}">{{ t('Show latest') }}</a>
-      </div>
-      {% endif %}
-
       <script type="text/template" id="raw-text-original">{{ revision.body }}</script>
 
       {# formatted text #}