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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user