Browse Source

remove draft tab in user home

yusuketk 5 years ago
parent
commit
6f88fb53c8
2 changed files with 0 additions and 29 deletions
  1. 0 1
      src/client/js/app.jsx
  2. 0 28
      src/server/views/widget/user_page_content.html

+ 0 - 1
src/client/js/app.jsx

@@ -99,7 +99,6 @@ if (pageContainer.state.pageId != null) {
 
     'recent-created-icon': <RecentlyCreatedIcon />,
     'user-created-list': <RecentCreated userId={pageContainer.state.creator._id} />,
-    'user-draft-list': <MyDraftList />,
   });
 }
 if (pageContainer.state.path != null) {

+ 0 - 28
src/server/views/widget/user_page_content.html

@@ -13,12 +13,6 @@
       </a>
     </li>
     {% if user._id.toString() == pageUser._id.toString() %}
-    <li class="nav-item">
-      <a class="nav-link" href="#user-draft-list" role="tab" data-toggle="tab">
-        <i class="icon-docs"></i>
-        <span class="d-none d-sm-inline">My Drafts</span>
-      </a>
-    </li>
     <li class="nav-item">
       <a class="nav-link" href="/me" role="tab">
         <i class="icon-wrench"></i>
@@ -39,27 +33,5 @@
         </div>
       {% endif %}
     </div>
-
-    {% if user._id.toString() == pageUser._id.toString() %}
-    <div class="tab-pane user-draft-list page-list" id="user-draft-list">
-      <div class="page-list-container">
-      </div>
-    </div>
-    {% endif %}
   </div>
 </div>
-
-<script>
-  function activateTab(tab){
-    $('.nav-tabs a[href="#' + tab + '"]').tab('show');
-  };
-
-  window.addEventListener('load', function(e) {
-    // hash on page
-    if (location.hash) {
-      if (location.hash == '#user-draft-list') {
-        activateTab('user-draft-list');
-      }
-    }
-  });
-</script>