Improved public status page UI (Added environment and duration, fixed table cell height).
This commit is contained in:
parent
ceb2a20bf6
commit
90bc9c69a1
|
@ -494,6 +494,10 @@
|
|||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.table-hover td {
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.small-box > .inner {
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
|
|
@ -97,6 +97,8 @@
|
|||
<th>Date</th>
|
||||
<th>Commit</th>
|
||||
<th>Branch</th>
|
||||
<th>Environment</th>
|
||||
<th>Duration</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="latest-builds">
|
||||
|
@ -143,17 +145,16 @@
|
|||
<td><?= $build->getCreated()->format('Y-m-d H:i:s'); ?></td>
|
||||
<td>
|
||||
<?php
|
||||
if ($build->getCommitId() !== 'Manual') {
|
||||
echo sprintf(
|
||||
'<a href="%s" target="_blank">%s (%s)</a> — %s',
|
||||
$build->getCommitLink(),
|
||||
substr($build->getCommitId(), 0, 7),
|
||||
$build->getCommitterEmail(),
|
||||
$build->getCommitMessage()
|
||||
);
|
||||
} else {
|
||||
echo $build->getCommitId();
|
||||
}
|
||||
if ($build->getCommitId() !== 'Manual') {
|
||||
print sprintf(
|
||||
'<a href="%s" target="_blank">%s (%s)</a>',
|
||||
$build->getCommitLink(),
|
||||
substr($build->getCommitId(), 0, 7),
|
||||
$build->getCommitterEmail()
|
||||
);
|
||||
} else {
|
||||
print 'Manual';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
||||
|
@ -167,6 +168,15 @@
|
|||
</a>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php
|
||||
$environment = $build->getEnvironment();
|
||||
echo !empty($environment) ? $environment : '—' ;
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $build->getDuration(); ?> sec.
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
||||
|
|
Loading…
Reference in a new issue