* Modify the filter label of the job Module.

This commit is contained in:
tianshujie
2023-02-21 17:10:52 +08:00
parent aeb2ae52f8
commit 1bf09c95ed
6 changed files with 26 additions and 4 deletions
+6 -2
View File
@@ -14,8 +14,12 @@
<div id="mainMenu" class="clearfix">
<div class="btn-toolbar pull-left">
<?php
echo html::a($this->createLink('job', 'browse', "repoID=$repoID"), "<span class='text'>{$lang->ci->list}</span>", '', "class='btn btn-link'");
echo html::a($this->createLink('compile', 'browse', "repoID=$repoID&jobID=$jobID"), "<span class='text'>" . ($jobID ? $job->name : '') . " {$lang->ci->history}</span>", '', "class='btn btn-link btn-active-text'");
$menus = customModel::getFeatureMenu('job', 'browse');
foreach($menus as $menuItem)
{
$active = $menuItem->name == 'compile' ? 'btn-active-text' : '';
echo html::a($this->createLink($menuItem->name, 'browse', "repoID=$repoID"), "<span class='text'>{$menuItem->text}</span>", '', "class='btn btn-link $active'");
}
?>
</div>
</div>
+3
View File
@@ -100,3 +100,6 @@ $lang->job->pipelineVariables = "Variables";
$lang->job->pipelineVariablesKeyPlaceHolder = "Input variable key";
$lang->job->pipelineVariablesValuePlaceHolder = "Input variable value";
$lang->job->pipelineVariablesTips = "Specify variable values to be used in this run. The values specified in CI/CD settings will be used by default.";
$lang->job->featureBar['browse']['job'] = 'List';
$lang->job->featureBar['browse']['compile'] = 'History';
+3
View File
@@ -100,3 +100,6 @@ $lang->job->pipelineVariables = "Variables";
$lang->job->pipelineVariablesKeyPlaceHolder = "Input variable key";
$lang->job->pipelineVariablesValuePlaceHolder = "Input variable value";
$lang->job->pipelineVariablesTips = "Specify variable values to be used in this run. The values specified in CI/CD settings will be used by default.";
$lang->job->featureBar['browse']['job'] = 'List';
$lang->job->featureBar['browse']['compile'] = 'History';
+3
View File
@@ -100,3 +100,6 @@ $lang->job->pipelineVariables = "Variables";
$lang->job->pipelineVariablesKeyPlaceHolder = "Input variable key";
$lang->job->pipelineVariablesValuePlaceHolder = "Input variable value";
$lang->job->pipelineVariablesTips = "Specify variable values to be used in this run. The values specified in CI/CD settings will be used by default.";
$lang->job->featureBar['browse']['job'] = 'List';
$lang->job->featureBar['browse']['compile'] = 'History';
+3
View File
@@ -101,3 +101,6 @@ $lang->job->pipelineVariablesKeyPlaceHolder = "输入变量的名称";
$lang->job->pipelineVariablesValuePlaceHolder = "输入变量的值";
$lang->job->pipelineVariablesTips = "指定要在此次运行中使用的变量值。CI/CD设置中指定的值将用作默认值。";
$lang->job->setReferenceTips = "在执行构建前,请先设置代码库的分支信息。";
$lang->job->featureBar['browse']['job'] = '列表';
$lang->job->featureBar['browse']['compile'] = '构建历史';
+8 -2
View File
@@ -13,8 +13,14 @@
<?php include '../../common/view/header.html.php';?>
<div id="mainMenu" class="clearfix">
<div class="btn-toolbar pull-left">
<?php echo html::a($this->createLink('job', 'browse', "repoID=$repoID"), "<span class='text'>{$lang->ci->list}</span>", '', "class='btn btn-link btn-active-text'");?>
<?php echo html::a($this->createLink('compile', 'browse', "repoID=$repoID"), "<span class='text'>{$lang->ci->history}</span>", '', "class='btn btn-link'");?>
<?php
$menus = customModel::getFeatureMenu('job', 'browse');
foreach($menus as $menuItem)
{
$active = $menuItem->name == 'job' ? 'btn-active-text' : '';
echo html::a($this->createLink($menuItem->name, 'browse', "repoID=$repoID"), "<span class='text'>{$menuItem->text}</span>", '', "class='btn btn-link $active'");
}
?>
</div>
<div class="btn-toolbar pull-right">
<?php if(common::hasPriv('job', 'create')) common::printLink('job', 'create', "", "<i class='icon icon-plus'></i> " . $lang->job->create, '', "class='btn btn-primary'");?>