This commit is contained in:
liyuchun
2022-07-15 00:59:08 +00:00
parent b24de96af9
commit 9b26371429
2 changed files with 6 additions and 2 deletions
+3
View File
@@ -38,6 +38,9 @@ class job extends control
*/
public function browse($repoID = 0, $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1)
{
$repos = $this->loadModel('repo')->getRepoPairs('devops');
if(empty($repos)) $this->locate($this->repo->createLink('create'));
/* Set session. */
$this->loadModel('ci')->setMenu($repoID);
+3 -2
View File
@@ -53,9 +53,10 @@ class repoModel extends model
echo(js::alert($this->lang->repo->error->accessDenied));
return print(js::locate('back'));
}
}
$this->lang->switcherMenu = $this->getSwitcher($repoID);
if($repo->SCM != 'Gitlab') unset($this->lang->devops->menu->mr);
$this->lang->switcherMenu = $this->getSwitcher($repoID);
}
common::setMenuVars('devops', $repoID);
if(!session_id()) session_start();