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

Add group discussion

This commit is contained in:
Daniel Pan
2016-03-08 13:36:58 +08:00
committed by llj
parent 3b70297b13
commit 4aa500203d
14 changed files with 355 additions and 17 deletions

View File

@@ -24,6 +24,7 @@ define([
'group/:group_id/': 'showGroupRepos',
'group/:group_id/lib/:repo_id(/*path)': 'showGroupRepoDir',
'group/:group_id/members/': 'showGroupMembers',
'group/:group_id/discussions/': 'showGroupDiscussions',
'org/': 'showOrgRepos',
'org/lib/:repo_id(/*path)': 'showOrgRepoDir',
'common/lib/:repo_id(/*path)': 'showCommonDir',
@@ -180,6 +181,11 @@ define([
this.groupView.showMembers();
},
showGroupDiscussions: function(group_id) {
this.showGroupRepos(group_id);
this.groupView.showDiscussions();
},
showOrgRepos: function() {
this.switchCurrentView(this.orgView);
this.orgView.showRepoList();