* code for task #78384.

This commit is contained in:
wangyidong
2022-12-05 10:10:59 +08:00
parent 2fd85774c1
commit 42e85ebbb8
7 changed files with 21 additions and 10 deletions
+9 -6
View File
@@ -50,13 +50,12 @@
<th class="c-id-sm"><?php echo $lang->build->id;?></th>
<th class="c-name text-left"><?php echo $lang->build->name;?></th>
<?php if($project->hasProduct):?>
<th class="c-name w-200px text-left"><?php echo $lang->build->product;?></th>
<th class="c-name w-150px text-left"><?php echo $lang->build->product;?></th>
<?php endif;?>
<?php if($project->multiple):?>
<th class="c-name text-left"><?php echo $lang->executionCommon;?></th>
<th class="c-name w-150px text-left"><?php echo $lang->executionCommon;?></th>
<?php endif;?>
<th class="c-url"><?php echo $lang->build->scmPath;?></th>
<th class="c-url"><?php echo $lang->build->filePath;?></th>
<th class="c-url w-300px text-left"><?php echo $lang->build->url;?></th>
<th class="c-date"><?php echo $lang->build->date;?></th>
<th class="c-user"><?php echo $lang->build->builder;?></th>
<th class="c-actions-5"><?php echo $lang->actions;?></th>
@@ -97,8 +96,12 @@
</td>
<?php endif;?>
<?php endif;?>
<td class="c-url" title="<?php echo $build->scmPath?>"><?php echo strpos($build->scmPath, 'http') === 0 ? html::a($build->scmPath) : $build->scmPath;?></td>
<td class="c-url" title="<?php echo $build->filePath?>"><?php echo strpos($build->filePath, 'http') === 0 ? html::a($build->filePath) : $build->filePath;?></td>
<td class="c-url text-left">
<?php
if($build->scmPath) echo "<div><i class='icon icon-code' title='{$lang->build->scmPath}'></i> <span title='{$build->scmPath}'>" . (strpos($build->scmPath, 'http') === 0 ? html::a($build->scmPath) : $build->scmPath) . '</span></div>';
if($build->filePath) echo "<div><i class='icon icon-file-archive' title='{$lang->build->filePath}'></i> <span title='{$build->filePath}'>" . (strpos($build->filePath, 'http') === 0 ? html::a($build->filePath) : $build->filePath) . '</span></div>';
?>
</td>
<td class="c-date"><?php echo $build->date?></td>
<td class="c-user em"><?php echo zget($users, $build->builder);?></td>
<td class="c-actions"><?php echo $this->build->buildOperateMenu($build, 'browse');?></td>