瀏覽代碼

ensure not to show cancel button when not logged in

Yuki Takei 9 年之前
父節點
當前提交
29b96272df
共有 1 個文件被更改,包括 2 次插入0 次删除
  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">