This commit is contained in:
dingguodong
2021-08-20 15:16:46 +08:00
5 changed files with 19 additions and 14 deletions
+1
View File
@@ -33,6 +33,7 @@ class gitlab extends control
foreach($gitlabList as $gitlab)
{
$token = $this->gitlab->apiGetCurrentUser($gitlab->url,$gitlab->token);
$gitlab->isAdminToken = isset($token->is_admin) ? $token->is_admin : 0;
}
+1 -1
View File
@@ -16,7 +16,7 @@
<?php if(common::hasPriv('gitlab', 'create')) common::printLink('gitlab', 'create', "", "<i class='icon icon-plus'></i> " . $lang->gitlab->create, '', "class='btn btn-primary'");?>
</div>
</div>
<?php if(empty($gitlabList)):?>
<?php if(!empty($gitlabList)):?>
<div class="table-empty-tip">
<p>
<span class="text-muted"><?php echo $lang->noData;?></span>