Explorar el Código

BugFix not found page

Yuki Takei hace 8 años
padre
commit
4cb2098935

+ 1 - 1
lib/routes/page.js

@@ -408,7 +408,7 @@ module.exports = function(crowi, app) {
   function renderPage(pageData, req, res) {
     // create page
     if (!pageData) {
-      return res.render('page', {
+      return res.render('customlayout-selector/page', {
         author: {},
         page: false,
       });

+ 2 - 2
lib/views/layout-crowi/not_found.html

@@ -24,7 +24,7 @@
 
 
 {% block content_main_before %}
-  {% include 'widget/page_alerts.html' %}
+  {% include '../widget/page_alerts.html' %}
 {% endblock %}
 
 
@@ -34,7 +34,7 @@
     Page is not found
   </h2>
 
-  {% include 'widget/not_found_content.html' %}
+  {% include '../widget/not_found_content.html' %}
 {% endblock %}
 
 

+ 1 - 1
lib/views/layout-crowi/page.html

@@ -54,7 +54,7 @@
   </ul>
   <div class="tab-content">
     <div class="edit-form">
-    {% include '_form.html' %}
+    {% include '../_form.html' %}
     </div>
   </div>
   {% else %}