1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

new repo/dir/group url

This commit is contained in:
lian
2015-04-25 15:39:06 +08:00
parent cce391e5d2
commit 79efd306a9
28 changed files with 71 additions and 42 deletions

View File

@@ -26,6 +26,7 @@ define([
'org/': 'showOrgRepos',
'org/lib/:repo_id(/*path)': 'showOrgRepoDir',
'common/lib/:repo_id(/*path)': 'showCommonDir',
// Default
'*actions': 'defaultAction'
},
@@ -81,6 +82,16 @@ define([
this.myHomeView.showDir('my-libs', repo_id, path);
},
showCommonDir: function(repo_id, path) {
if (path) {
path = '/' + path;
} else {
path = '/';
}
this.switchCurrentView(this.myHomeView);
this.myHomeView.showDir('common', repo_id, path);
},
showMySubRepoDir: function(repo_id, path) {
if (path) {
path = '/' + path;