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