Added duration column to the project page

This commit is contained in:
Dmitry Khomutov 2017-02-24 10:19:52 +07:00
parent 00a2248c93
commit 3176111c91
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
3 changed files with 5 additions and 13 deletions

View file

@ -36,7 +36,7 @@ class RunCommand extends Command
/**
* @var int
*/
protected $maxBuilds = 100;
protected $maxBuilds = 10;
/**
* @param \Monolog\Logger $logger

View file

@ -40,17 +40,6 @@ switch($build->getStatus())
<tr>
<td><a href="<?php echo APP_URL ?>build/view/<?php print $build->getId(); ?>">#<?php print str_pad($build->getId(), 6, '0', STR_PAD_LEFT); ?></a></td>
<td><?php print $build->getCreated()->format('Y-m-d H:i:s'); ?></td>
<td><a href="<?php echo APP_URL ?>project/view/<?php print $build->getProjectId(); ?>">
<i class="fa fa-<?php print $build->getProject()->getIcon(); ?>"></i>
<?php
if (is_object($build->getProject())) {
print htmlspecialchars($build->getProject()->getTitle());
} else {
print ' - ';
}
?></a></td>
<td class="hidden-md hidden-sm hidden-xs">
<?php
if ($build->getCommitId() !== 'Manual') {
@ -70,6 +59,9 @@ switch($build->getStatus())
<td>
<span class='label label-<?php echo $subcls ?>'><?php echo $status ?></span>
</td>
<td>
<?php print $build->getDuration(); ?> <?= Lang::get('seconds'); ?>
</td>
<td>
<div class="btn-group btn-group-right">
<a class="btn btn-default btn-sm" href="<?php echo APP_URL ?>build/view/<?php print $build->getId(); ?>"><?php Lang::out('view'); ?></a>

View file

@ -60,10 +60,10 @@
<tr>
<th><?php Lang::out('id'); ?></th>
<th><?php Lang::out('date'); ?></th>
<th><?php Lang::out('project'); ?></th>
<th class="hidden-md hidden-sm hidden-xs"><?php Lang::out('commit'); ?></th>
<th><?php Lang::out('branch'); ?></th>
<th><?php Lang::out('status'); ?></th>
<th><?php Lang::out('duration'); ?></th>
<th></th>
</tr>
</thead>