Sfoglia il codice sorgente

WIP: apply bootstrap theme

* not found page
Yuki Takei 8 anni fa
parent
commit
85c74738b6
1 ha cambiato i file con 13 aggiunte e 13 eliminazioni
  1. 13 13
      lib/views/not_found.html

+ 13 - 13
lib/views/not_found.html

@@ -25,25 +25,25 @@
 {% block content_main %}
 
 {% block content_main_before %}
+  {% if req.query.renamed %}
+  <div class="alert alert-info alert-moved">
+    <span>
+      <strong>{{ t('Moved') }}: </strong> {{ t('page_page.notice.moved', req.query.renamed) }}
+    </span>
+  </div>
+  {% endif %}
+  {% if req.query.unlinked %}
+  <div class="alert alert-info alert-unlinked">
+    <strong>{{ t('Unlinked') }}: </strong> {{ t('page_page.notice.unlinked') }}
+  </div>
+  {% endif %}
+
   <h2 class="message-not-found text-muted">
     <i class="icon-info" aria-hidden="true"></i>
     Page is not found
   </h2>
 {% endblock %}
 
-{% if req.query.renamed %}
-<div class="alert alert-info alert-moved">
-  <span>
-    <strong>{{ t('Moved') }}: </strong> {{ t('page_page.notice.moved', req.query.renamed) }}
-  </span>
-</div>
-{% endif %}
-{% if req.query.unlinked %}
-<div class="alert alert-info alert-unlinked">
-  <strong>{{ t('Unlinked') }}: </strong> {{ t('page_page.notice.unlinked') }}
-</div>
-{% endif %}
-
 <div id="content-main" class="content-main content-main-not-found page-list"
   data-path="{{ path }}"
   data-path-shortname="{{ path|path2name }}"