瀏覽代碼

modify whether show/hide conditions of comments

Yuki Takei 9 年之前
父節點
當前提交
1ba41c3789
共有 3 個文件被更改,包括 4 次插入6 次删除
  1. 1 3
      lib/views/crowi-plus/page.html
  2. 1 3
      lib/views/crowi-plus/page_list.html
  3. 2 0
      lib/views/crowi-plus/widget/comments.html

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

@@ -37,7 +37,5 @@
 {% endblock %}
 
 {% block content_main_after %}
-  {% if page and not page.isDeleted() %}
-    {% include 'widget/comments.html' %}
-  {% endif %}
+  {% include 'widget/comments.html' %}
 {% endblock %}

+ 1 - 3
lib/views/crowi-plus/page_list.html

@@ -37,7 +37,5 @@
 {% endblock %}
 
 {% block content_main_after %}
-  {% if page and not page.isDeleted() %}
-    {% include 'widget/comments.html' %}
-  {% endif %}
+  {% include 'widget/comments.html' %}
 {% endblock %}

+ 2 - 0
lib/views/crowi-plus/widget/comments.html

@@ -16,6 +16,7 @@
       <div class="page-comments-list-older collapse in" id="page-comments-list-older"></div>
     </div>
 
+    {% if page and not page.isDeleted() %}
     <form class="form page-comment-form" id="page-comment-form" onsubmit="return false;">
       <div class="comment-form">
         <div class="comment-form-user">
@@ -40,6 +41,7 @@
         </div>
       </div>
     </form>
+    {% endif %}
 
   </div>