1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

starred file page

This commit is contained in:
lian
2015-05-04 17:02:20 +08:00
parent 09ab163f7f
commit 2ea8eb6324
12 changed files with 260 additions and 29 deletions

View File

@@ -25,8 +25,8 @@ define([
'group/:group_id/lib/:repo_id(/*path)': 'showGroupRepoDir',
'org/': 'showOrgRepos',
'org/lib/:repo_id(/*path)': 'showOrgRepoDir',
'common/lib/:repo_id(/*path)': 'showCommonDir',
'starred/': 'showStarredFile',
// Default
'*actions': 'defaultAction'
},
@@ -72,6 +72,11 @@ define([
this.myHomeView.showSharedRepos();
},
showStarredFile: function() {
this.switchCurrentView(this.myHomeView);
this.myHomeView.showStarredFile();
},
showMyRepoDir: function(repo_id, path) {
if (path) {
path = '/' + path;