+ Add branch and tag page for gitlab.
This commit is contained in:
@@ -103,7 +103,7 @@ $config->gitlab->dtable->project->fieldList['actions']['list']['browseTag']['ico
|
||||
$config->gitlab->dtable->project->fieldList['actions']['list']['browseTag']['hint'] = $lang->gitlab->browseTag;
|
||||
$config->gitlab->dtable->project->fieldList['actions']['list']['browseTag']['url'] = helper::createLink('gitlab', 'browseTag', 'gitlabID={gitlabID}&projectID={id}');
|
||||
|
||||
$config->gitlab->dtable->project->fieldList['actions']['list']['manageBranchPriv']['icon'] = 'tag';
|
||||
$config->gitlab->dtable->project->fieldList['actions']['list']['manageBranchPriv']['icon'] = 'branch-lock';
|
||||
$config->gitlab->dtable->project->fieldList['actions']['list']['manageBranchPriv']['hint'] = $lang->gitlab->browseBranchPriv;
|
||||
$config->gitlab->dtable->project->fieldList['actions']['list']['manageBranchPriv']['url'] = helper::createLink('gitlab', 'manageBranchPriv', 'gitlabID={gitlabID}&projectID={id}');
|
||||
|
||||
@@ -195,3 +195,23 @@ $config->gitlab->dtable->user->fieldList['actions']['list']['deleteUser']['icon'
|
||||
$config->gitlab->dtable->user->fieldList['actions']['list']['deleteUser']['hint'] = $lang->gitlab->deleteUser;
|
||||
$config->gitlab->dtable->user->fieldList['actions']['list']['deleteUser']['url'] = helper::createLink('gitlab', 'deleteUser', 'gitlabID={gitlabID}&userID={id}');
|
||||
$config->gitlab->dtable->user->fieldList['actions']['list']['deleteUser']['className'] = 'ajax-submit';
|
||||
|
||||
$config->gitlab->dtable->branch = new stdclass();
|
||||
$config->gitlab->dtable->branch->fieldList['name']['title'] = $lang->gitlab->branch->name;
|
||||
$config->gitlab->dtable->branch->fieldList['name']['type'] = 'title';
|
||||
|
||||
$config->gitlab->dtable->branch->fieldList['lastCommitter']['title'] = $lang->gitlab->branch->lastCommitter;
|
||||
$config->gitlab->dtable->branch->fieldList['lastCommitter']['type'] = 'text';
|
||||
|
||||
$config->gitlab->dtable->branch->fieldList['lastCommittedDate']['title'] = $lang->gitlab->branch->lastCommittedDate;
|
||||
$config->gitlab->dtable->branch->fieldList['lastCommittedDate']['type'] = 'text';
|
||||
|
||||
$config->gitlab->dtable->tag = new stdclass();
|
||||
$config->gitlab->dtable->tag->fieldList['name']['title'] = $lang->gitlab->branch->name;
|
||||
$config->gitlab->dtable->tag->fieldList['name']['type'] = 'title';
|
||||
|
||||
$config->gitlab->dtable->tag->fieldList['lastCommitter']['title'] = $lang->gitlab->branch->lastCommitter;
|
||||
$config->gitlab->dtable->tag->fieldList['lastCommitter']['type'] = 'text';
|
||||
|
||||
$config->gitlab->dtable->tag->fieldList['updated']['title'] = $lang->gitlab->branch->lastCommittedDate;
|
||||
$config->gitlab->dtable->tag->fieldList['updated']['type'] = 'text';
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
* The browsebranch view file of gitlab module of ZenTaoPMS.
|
||||
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
|
||||
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
|
||||
* @author Yanyi Cao <caoyanyi@easycorp.ltd>
|
||||
* @package gitlab
|
||||
* @link https://www.zentao.net
|
||||
*/
|
||||
namespace zin;
|
||||
|
||||
featureBar
|
||||
(
|
||||
backBtn
|
||||
(
|
||||
set::text($lang->goback),
|
||||
set::url(createLink('gitlab', 'browseProject', "gitlabID={$gitlabID}")),
|
||||
)
|
||||
);
|
||||
hasPriv('instance', 'manage') ? toolBar
|
||||
(
|
||||
item
|
||||
(
|
||||
setClass('btn primary'),
|
||||
set::text($lang->gitlab->createBranch),
|
||||
set::icon('plus'),
|
||||
set::url(createLink('gitlab', 'createBranch', "gitlabID={$gitlabID}&projectID={$projectID}")),
|
||||
),
|
||||
) : null;
|
||||
|
||||
$branchList = initTableData($gitlabBranchList, $config->gitlab->dtable->branch->fieldList, $this->gitlab);
|
||||
dtable
|
||||
(
|
||||
set::cols($config->gitlab->dtable->branch->fieldList),
|
||||
set::data($branchList),
|
||||
set::sortLink(createLink('gitlab', 'browseBranch', "gitlabID={$gitlabID}&projectID={$projectID}&orderBy={name}_{sortType}")),
|
||||
set::orderBy($orderBy)
|
||||
);
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
* The browsetag view file of gitlab module of ZenTaoPMS.
|
||||
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
|
||||
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
|
||||
* @author Yanyi Cao <caoyanyi@easycorp.ltd>
|
||||
* @package gitlab
|
||||
* @link https://www.zentao.net
|
||||
*/
|
||||
namespace zin;
|
||||
|
||||
featureBar
|
||||
(
|
||||
backBtn
|
||||
(
|
||||
set::text($lang->goback),
|
||||
set::url(createLink('gitlab', 'browseProject', "gitlabID={$gitlabID}")),
|
||||
)
|
||||
);
|
||||
hasPriv('instance', 'manage') ? toolBar
|
||||
(
|
||||
item
|
||||
(
|
||||
setClass('btn primary'),
|
||||
set::text($lang->gitlab->createTag),
|
||||
set::icon('plus'),
|
||||
set::url(createLink('gitlab', 'createTag', "gitlabID={$gitlabID}&projectID={$projectID}")),
|
||||
),
|
||||
) : null;
|
||||
|
||||
$tagList = initTableData($gitlabTagList, $config->gitlab->dtable->tag->fieldList, $this->gitlab);
|
||||
dtable
|
||||
(
|
||||
set::cols($config->gitlab->dtable->tag->fieldList),
|
||||
set::data($tagList),
|
||||
set::sortLink(createLink('gitlab', 'browseTag', "gitlabID={$gitlabID}&projectID={$projectID}&orderBy={name}_{sortType}")),
|
||||
set::orderBy($orderBy),
|
||||
);
|
||||
Reference in New Issue
Block a user