* Add creating a gitlab project from repo.

This commit is contained in:
dingguodong
2021-08-12 14:02:07 +08:00
parent a6598c7771
commit 0c2f5fd11e
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
<?php
$lang->mr->common = "合并请求";
$lang->mr->create = "创建{$lang->mr->common}";
$lang->mr->add = "添加GitLab项目";
+6 -1
View File
@@ -1,4 +1,9 @@
<?php include '../../common/view/header.html.php';?>
<div id="mainMenu" class="clearfix">
<div class='pull-right'>
<?php if(common::hasPriv('repo', 'create')) echo html::a(helper::createLink('repo', 'create'), "<i class='icon icon-plus'></i> " . $lang->mr->add, '', "class='btn btn-primary'");?>
</div>
</div>
<div id='mainContent'>
<form class='main-table' id='ajaxForm' method='post'>
<table id='gitlabProjectList' class='table has-sort-head table-fixed'>
@@ -33,8 +38,8 @@
</td>
<td class='text-left c-actions'>
<?php
common::printIcon('mr', 'create', "repo={$repo->id}", $lang->mr->common, 'list', 'review');
common::printIcon('repo', 'edit', "repoID=$repo->id&objectID=$objectID", '', 'list', 'edit');
common::printIcon('mr', 'create', "repo={$repo->id}", $lang->mr->create, 'list', 'review');
if(common::hasPriv('repo', 'delete')) echo html::a($this->createLink('repo', 'delete', "repoID=$repo->id&objectID=$objectID"), '<i class="icon-trash"></i>', 'hiddenwin', "title='{$lang->repo->delete}' class='btn'");
?>
</td>