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

simplify header

* show pagePath and bookmark button even if the page is deleted
Yuki Takei 8 лет назад
Родитель
Сommit
f90a170d21
2 измененных файлов с 0 добавлено и 33 удалено
  1. 0 16
      lib/views/crowi-plus/widget/header.html
  2. 0 17
      lib/views/page.html

+ 0 - 16
lib/views/crowi-plus/widget/header.html

@@ -1,5 +1,4 @@
 <div class="header-wrap">
-  {% if not page.isDeleted() %}
   <header id="page-header">
     <p class="stopper"><a href="#" data-affix-disable="#page-header"><i class="fa fa-chevron-up"></i></a></p>
 
@@ -62,19 +61,4 @@
     </div>
 
   </header>
-  {% else %}
-  {# trash/* #}
-  <header id="page-header">
-    <div class="flex-title-line">
-      <h1 class="title flex-item-title"></h1>
-      <div class="flex-item-action">
-        <span id="bookmark-button">
-          <p class="bookmark-link">
-            <i class="fa fa-star-o"></i>
-          </a>
-        </span>
-      </div>
-    </div>
-  </header>
-  {% endif %}
 </div>

+ 0 - 17
lib/views/page.html

@@ -8,11 +8,9 @@
 {% endblock %}
 
 <div class="header-wrap">
-  {% if not page.isDeleted() %}
   <header id="page-header">
     <p class="stopper"><a href="#" data-affix-disable="#page-header"><i class="fa fa-chevron-up"></i></a></p>
 
-
     <div class="flex-title-line">
       <h1 class="title flex-item-title" id="revision-path"></h1>
       {% if page %}
@@ -35,21 +33,6 @@
 
     <div id="revision-url" class="url-line"></div>
   </header>
-  {% else %}
-  {# trash/* #}
-  <header id="page-header">
-    <div class="flex-title-line">
-      <h1 class="title flex-item-title"></h1>
-      <div class="flex-item-action">
-        <span id="bookmark-button">
-          <p class="bookmark-link">
-            <i class="fa fa-star-o"></i>
-          </a>
-        </span>
-      </div>
-    </div>
-  </header>
-  {% endif %}
 </div>
 
 {% block content_head_after %}