Improved public status page UI (Added environment and duration, fixed table cell height).

This commit is contained in:
Dmitry Khomutov 2017-08-31 22:06:29 +07:00
parent ceb2a20bf6
commit 90bc9c69a1
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
2 changed files with 25 additions and 11 deletions

View file

@ -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);
}

View file

@ -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> &mdash; %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; ?>