Explorar el Código

hide Create button when the path is in trash

Yuki Takei hace 7 años
padre
commit
44c6127a01
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/server/views/widget/not_found_tabs.html

+ 2 - 1
src/server/views/widget/not_found_tabs.html

@@ -5,10 +5,11 @@
     </a>
   </li>
 
+  {% if !isTrashPage() and !page.isDeleted() %}
   <li class="nav-main-left-tab">
     <a {% if user %}href="#edit" data-toggle="tab"{% endif %} class="edit-button {% if not user %}edit-button-disabled{% endif %}">
       <i class="icon-note"></i> {{ t('Create') }}
     </a>
   </li>
-
+  {% endif %}
 </ul>