Просмотр исходного кода

modify whether show/hide conditions of comments

Yuki Takei 9 лет назад
Родитель
Сommit
1ba41c3789

+ 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>