* Modify job view lable.

This commit is contained in:
qiyu-xie
2021-02-19 10:19:44 +08:00
committed by Yagami
parent 0dd31db0f0
commit c3bc4c3cdf
2 changed files with 13 additions and 13 deletions
+11 -11
View File
@@ -26,25 +26,15 @@
<?php $hasLog = ($compile and !empty($compile->logs));?>
<div class='tabs' id='tabsNav'>
<ul class='nav nav-tabs'>
<li class='<?php echo ($hasResult || $hasLog) ? '' : 'active';?>'><a href='#info' data-toggle='tab'><?php echo $lang->job->lblBasic;?></a></li>
<?php if($hasResult):?>
<li class='active'><a href='#testresult' data-toggle='tab'><?php echo $lang->compile->result;?></a></li>
<?php endif;?>
<?php if($hasLog):?>
<li class='<?php echo $hasResult ? '' : 'active';?>'><a href='#logs' data-toggle='tab'><?php echo $lang->compile->logs;?></a></li>
<?php endif;?>
<li class='<?php echo ($hasResult || $hasLog) ? '' : 'active';?>'><a href='#info' data-toggle='tab'><?php echo $lang->job->lblBasic;?></a></li>
</ul>
<div class='tab-content'>
<?php if($hasResult):?>
<div id='testresult' class='tab-pane active'>
<?php include $this->app->getModuleRoot() . 'testtask/view/unitgroup.html.php';?>
</div>
<?php endif;?>
<?php if($hasLog):?>
<div id='logs' class='tab-pane <?php echo $hasResult ? '' : 'active';?>'>
<div class='main-content'><?php echo nl2br($compile->logs);?></div>
</div>
<?php endif;?>
<div id='info' class='tab-pane <?php echo ($hasResult || $hasLog) ? '' : 'active';?>'>
<table class='table table-data table-condensed table-borderless'>
<tr>
@@ -113,6 +103,16 @@
</tr>
</table>
</div>
<?php if($hasResult):?>
<div id='testresult' class='tab-pane active'>
<?php include $this->app->getModuleRoot() . 'testtask/view/unitgroup.html.php';?>
</div>
<?php endif;?>
<?php if($hasLog):?>
<div id='logs' class='tab-pane <?php echo $hasResult ? '' : 'active';?>'>
<div class='main-content'><?php echo nl2br($compile->logs);?></div>
</div>
<?php endif;?>
</div>
</div>
</div>
+2 -2
View File
@@ -280,8 +280,8 @@ $lang->story->createCommon = $storyType == 'story' ? $lang->story->createStory :
<button type='button' class='btn dropdown-toggle' data-toggle='dropdown'><span class='caret'></span></button>
<ul class='dropdown-menu'>
<?php
$class = $canBatchClose ? '' : "class='disabled'";
$actionLink = $this->createLink('story', 'batchClose', "productID=$productID&projectID=0");
$class = $canBatchClose ? '' : "class='disabled'";
$actionLink = $this->createLink('story', 'batchClose', "productID=$productID&projectID=0");
$misc = $canBatchClose ? "onclick=\"setFormAction('$actionLink')\"" : '';
echo "<li $class>" . html::a('#', $lang->close, '', $misc) . "</li>";