Explorar o código

ensure not to include 'widget/comments.html' when page is not exist

Yuki Takei %!s(int64=9) %!d(string=hai) anos
pai
achega
e766307fb9
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      lib/views/crowi-plus/page.html
  2. 1 1
      lib/views/crowi-plus/page_list.html

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

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

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

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