* Add gitlab browse group page

This commit is contained in:
zenggang
2023-11-03 07:18:00 +00:00
parent 75a470cc24
commit 3f1b5c6890
8 changed files with 245 additions and 5 deletions
+3 -2
View File
@@ -362,9 +362,10 @@ class gitlab extends control
if(!$openID) return print(js::alert($this->lang->gitlab->mustBindUser) . js::locate($this->createLink('gitlab', 'browse')));
}
$fixOrderBy = str_replace('fullName', 'name', $orderBy);
$keyword = fixer::input('post')->setDefault('keyword', '')->get('keyword');
$groups = $this->gitlab->apiGetGroups($gitlabID, $orderBy, '', $keyword);
$adminGroups = $this->gitlab->apiGetGroups($gitlabID, $orderBy, 'owner', $keyword);
$groups = $this->gitlab->apiGetGroups($gitlabID, $fixOrderBy, '', $keyword);
$adminGroups = $this->gitlab->apiGetGroups($gitlabID, $fixOrderBy, 'owner', $keyword);
$adminGroupIDList = array();
foreach($adminGroups as $group) $adminGroupIDList[] = $group->id;