css and html tweaks for plugin statueses in builds
This commit is contained in:
parent
6dce7e2004
commit
9574b63470
|
@ -35,7 +35,20 @@ switch($build->getStatus())
|
|||
<td><a href="<?= PHPCI_URL ?>project/view/<?php print $build->getProjectId(); ?>"><?php print $build->getProject()->getTitle(); ?></a></td>
|
||||
<td><a href="<?php print $build->getCommitLink(); ?>"><?php print $build->getCommitId(); ?></a></td>
|
||||
<td><a href="<?php print $build->getBranchLink(); ?>"><?php print $build->getBranch(); ?></a></td>
|
||||
<td><?php print $status; ?></td>
|
||||
<td>
|
||||
<?php
|
||||
$plugins = json_decode($build->getPlugins(), true);
|
||||
if ( !is_array($plugins) ) {
|
||||
$plugins = array();
|
||||
}
|
||||
?>
|
||||
<?php foreach($plugins as $plugin => $pluginstatus): ?>
|
||||
<div class='build-plugin-status <?= $pluginstatus?'success-message':'error-message' ?>'>
|
||||
<?= ucwords(str_replace('_', ' ', $plugin)) ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<br style='clear:both;' />
|
||||
</td>
|
||||
<td>
|
||||
<div class="btn-group">
|
||||
<a class="btn" href="<?= PHPCI_URL ?>build/view/<?php print $build->getId(); ?>">View</a>
|
||||
|
|
|
@ -14,6 +14,27 @@ body
|
|||
padding: 10px;
|
||||
}
|
||||
|
||||
.build-plugin-status {
|
||||
text-align: center;
|
||||
min-width: 80px;
|
||||
float: left;
|
||||
padding: 5px;
|
||||
margin-right: 5px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
.success-message {
|
||||
background-color: #4F8A10;
|
||||
}
|
||||
|
||||
.error-message {
|
||||
background-color: #FF4747;
|
||||
}
|
||||
|
||||
#latest-builds td {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.widget-title, .modal-header, .table th, div.dataTables_wrapper .ui-widget-header, .ui-dialog .ui-dialog-titlebar {
|
||||
background-color: #efefef;
|
||||
background-image: -webkit-gradient(linear, 0 0%, 0 100%, from(#fdfdfd), to(#eaeaea));
|
||||
|
@ -61,7 +82,7 @@ body
|
|||
background: url('/assets/img/icon-build-running.png') no-repeat top left;
|
||||
}
|
||||
|
||||
h3
|
||||
h3
|
||||
{
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
margin-top: 0;
|
||||
|
|
Loading…
Reference in a new issue