Merge branch 'fixbug' into 'master'

* Fix feedback #1530.

See merge request easycorp/zentaopms!6349
This commit is contained in:
王怡栋
2022-11-24 02:13:37 +00:00
2 changed files with 1 additions and 9 deletions
-7
View File
@@ -43,13 +43,6 @@ class gitlab extends control
/* Admin user don't need bind. */
$gitlabList = $this->gitlab->getList($orderBy, $pager);
$myGitLabs = $this->gitlab->getGitLabListByAccount();
foreach($gitlabList as $gitlab)
{
$gitlab->isBindUser = true;
if(!$this->app->user->admin and !isset($myGitLabs[$gitlab->id])) $gitlab->isBindUser = false;
}
$this->view->title = $this->lang->gitlab->common . $this->lang->colon . $this->lang->gitlab->browse;
$this->view->gitlabList = $gitlabList;
+1 -2
View File
@@ -55,9 +55,8 @@
<td class='text' title='<?php echo $gitlab->url;?>'><?php echo html::a($gitlab->url, $gitlab->url, '_target');?></td>
<td class='c-actions'>
<?php
$disabled = $gitlab->isBindUser ? true : false;
common::printIcon('gitlab', 'edit', "gitlabID=$id", '', 'list', 'edit');
echo common::buildIconButton('gitlab', 'bindUser', "gitlabID=$id", '', 'list', 'link', '', '', false, '', '', 0, $disabled);
echo common::buildIconButton('gitlab', 'bindUser', "gitlabID=$id", '', 'list', 'link');
common::printIcon('gitlab', 'delete', "gitlabID=$id", '', 'list', 'trash', 'hiddenwin');
?>
</td>