mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 22:54:11 +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;
|
||||
|
@@ -226,6 +226,8 @@ define([
|
||||
context = 'org';
|
||||
} else if (category_start == 'group') {
|
||||
context = 'group';
|
||||
} else if (category_start == 'common') {
|
||||
context = 'common';
|
||||
}
|
||||
var obj = {
|
||||
path: path,
|
||||
|
Reference in New Issue
Block a user