Sfoglia il codice sorgente

WIP: reconstruct layouts

* page alerts
Yuki Takei 8 anni fa
parent
commit
4433b7cc61

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

@@ -53,5 +53,11 @@
     </div>
     </div>
     {% endif %}
     {% 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>
 </div>
 </div>

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

@@ -15,12 +15,6 @@
   <div class="tab-content">
   <div class="tab-content">
 
 
     {% if page %}
     {% 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>
       <script type="text/template" id="raw-text-original">{{ revision.body }}</script>
 
 
       {# formatted text #}
       {# formatted text #}