1
0
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:
Daniel Pan
2015-04-10 14:31:26 +08:00
parent cb3c375cf7
commit 448bcb7565
2 changed files with 3 additions and 3 deletions

View File

@@ -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 == '/') { %>

View File

@@ -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() {