mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 06:33:48 +00:00
Improve sub-library support
This commit is contained in:
@@ -148,7 +148,7 @@
|
||||
<script type="text/template" id="path-bar-tmpl">
|
||||
<a href="#" class="path-link normal">{% trans "Libraries" %}</a> /
|
||||
<% if (category) { %>
|
||||
<a href="#<%= category %>" class="path-link normal"><% if (category == 'my-libs') { %>{% trans "Mine" %}<% } %><% if (category == 'shared-libs') { %>{% trans "Shared" %}<% } %></a> /
|
||||
<a href="#<%= category %>" class="path-link normal"><% if (category == 'my-libs') { %>{% trans "Mine" %}<% } %><% if (category == 'shared-libs') { %>{% trans "Shared" %}<% } %><% if (category == 'my-sub-libs') { %>{% trans "Sub-libraries" %}<% } %></a> /
|
||||
<% } else { %>
|
||||
<% } %>
|
||||
<% if (path == '/') { %>
|
||||
|
@@ -52,7 +52,7 @@ define([
|
||||
this.$loadingTip.hide();
|
||||
},
|
||||
|
||||
showMyRepos: function() {
|
||||
showSubRepos: function() {
|
||||
this.repos.fetch({reset: true});
|
||||
this.$tabs.show();
|
||||
this.$table.hide();
|
||||
@@ -62,7 +62,7 @@ define([
|
||||
|
||||
show: function() {
|
||||
$('#sub-lib-create').show();
|
||||
this.showMyRepos();
|
||||
this.showSubRepos();
|
||||
},
|
||||
|
||||
hide: function() {
|
||||
|
Reference in New Issue
Block a user