Browse Source

ensure not to show cancel button when not logged in

Yuki Takei 9 năm trước cách đây
mục cha
commit
29b96272df
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      lib/views/crowi-plus/new_page.html

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

@@ -63,9 +63,11 @@
               </a>
             </li>
 
+            {% if user %}
             <li class="dropdown pull-right">
               <a href="#" onclick="history.back();"><i class="fa fa-times"></i> {{ t('Cancel') }}</a>
             </li>
+            {% endif %}
           </ul>
 
           <div class="tab-content wiki-content">