Yuki Takei 8 лет назад
Родитель
Сommit
3b91f942b0

+ 1 - 2
lib/routes/page.js

@@ -200,8 +200,7 @@ module.exports = function(crowi, app) {
       }
     }).catch(function(err) {
       // page not exists
-
-      renderVars.page = {};
+      // change template
       pageTeamplate = 'crowi-plus/new_page';
     }).then(function() {
       return Page.findListByStartWith(path, req.user, queryOptions)

+ 2 - 3
lib/views/crowi-plus/new_page.html

@@ -36,11 +36,12 @@
       <div class="col-lg-10 col-md-9">
 
         {% block content_main_before %}
+        <h2 class="text-muted">Page is not exists</h2>
         {% endblock %}
 
 
 
-        <div id="content-main" class="content-main"
+        <div id="content-main" class="content-main content-main-new-page page-list"
           data-path="{{ path }}"
           data-path-shortname="{{ path|path2name }}"
           data-page-id="{% if page %}{{ page._id.toString() }}{% endif %}"
@@ -53,8 +54,6 @@
           data-csrftoken="{{ csrf() }}"
           >
 
-          <h2 class="text-muted">Page is not exists</h2>
-
           <ul class="nav nav-tabs hidden-print">
             <li class="active"><a href="#revision-body" data-toggle="tab">{{ t('List View') }}</a></li>
 

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

@@ -39,7 +39,7 @@
 
     </div>
 
-    <div class="row">
+    <div class="row page-list">
       <div class="col-md-12">
         {% include './widget/page_list_container.html' %}
       </div>

+ 6 - 0
resource/css/_page_crowi-plus.scss

@@ -34,3 +34,9 @@
     }
   }
 }
+
+.crowi-plus .content-main-new-page {
+  .nav {
+    margin-top: 30px;
+  }
+}