Merge branch 'zentaopms_239_wangjianhua_70793' into 'zentaopms_239'
* Hide creating repo button if project has no product. See merge request easycorp/zentaopms!5708
This commit is contained in:
@@ -519,6 +519,7 @@ class repo extends control
|
||||
$this->view->branchesAndTags = $branchesAndTags;
|
||||
$this->view->branchID = $branchID;
|
||||
$this->view->objectID = $objectID;
|
||||
$this->view->currentProject = $this->app->tab == 'project' ? $this->loadModel('project')->getByID($objectID) : null;
|
||||
$this->view->pager = $pager;
|
||||
$this->view->path = urldecode($path);
|
||||
$this->view->logType = $logType;
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
<?php if(common::hasPriv('repo', 'downloadCode')): ?>
|
||||
<button type="button" class="btn btn-primary" data-toggle="popover" id="downloadCode" title="<?php echo $lang->repo->downloadCode;?>"><i class='icon icon-sm icon-download'></i> <?php echo $lang->repo->download;?> <i class='icon icon-sm icon-caret-down'></i></button>
|
||||
<?php endif;?>
|
||||
<?php if(common::hasPriv('repo', 'create')) echo html::a(helper::createLink('repo', 'create', "objectID=$objectID"), "<i class='icon icon-plus'></i> " . $this->lang->repo->createAction, '', "class='btn btn-primary'");?>
|
||||
<?php if(common::hasPriv('repo', 'create') and $currentProject and !$currentProject->hasProduct) echo html::a(helper::createLink('repo', 'create', "objectID=$objectID"), "<i class='icon icon-plus'></i> " . $this->lang->repo->createAction, '', "class='btn btn-primary'");?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="mainContent" class="main-row fade">
|
||||
|
||||
Reference in New Issue
Block a user