Merge branch 'master' of ssh://gitbase.de:2222/cms/CockpitCMS-Drone
This commit is contained in:
commit
2b0dfca323
@ -71,7 +71,7 @@ if (COCKPIT_ADMIN && !COCKPIT_API_REQUEST) {
|
|||||||
$building = false;
|
$building = false;
|
||||||
foreach ($deploys as $idx => $deploy) {
|
foreach ($deploys as $idx => $deploy) {
|
||||||
$deploys[$idx]->building = false;
|
$deploys[$idx]->building = false;
|
||||||
if (!in_array($deploy->status, ['success', 'failure'])) {
|
if (!in_array($deploy->status, ['success', 'failure', 'error'])) {
|
||||||
$building = true;
|
$building = true;
|
||||||
$deploys[$idx]->building = true;
|
$deploys[$idx]->building = true;
|
||||||
}
|
}
|
||||||
|
@ -144,10 +144,10 @@ pre h2.failure {
|
|||||||
<tr each="{deploy, $index in deploys}" class="{ deploy.state == 'error' ? 'uk-text-danger' : ''}">
|
<tr each="{deploy, $index in deploys}" class="{ deploy.state == 'error' ? 'uk-text-danger' : ''}">
|
||||||
<td>
|
<td>
|
||||||
<a onclick="{ showdeployDetails }" class="extrafields-indicator uk-text-nowrap">
|
<a onclick="{ showdeployDetails }" class="extrafields-indicator uk-text-nowrap">
|
||||||
<span class="uk-badge uk-text-small" if="{!deploy.building && deploy.status !== 'failure' && deploy.status !== 'success' }"><i class="uk-icon-eye uk-icon-justify"></i>{ App.i18n.get(deploy.status) }</span>
|
<span class="uk-badge uk-text-small" if="{!deploy.building && deploy.status !== 'failure' && deploy.status !== 'success' && deploy.status !== 'error' }"><i class="uk-icon-eye uk-icon-justify"></i>{ App.i18n.get(deploy.status) }</span>
|
||||||
<span class="uk-badge uk-text-small uk-badge-success" if="{deploy.status === 'success'}"><i class="uk-icon-eye uk-icon-justify"></i>{ App.i18n.get(deploy.status) }</span>
|
<span class="uk-badge uk-text-small uk-badge-success" if="{deploy.status === 'success'}"><i class="uk-icon-eye uk-icon-justify"></i>{ App.i18n.get(deploy.status) }</span>
|
||||||
<span class="uk-badge uk-text-small uk-badge-danger" if="{deploy.status === 'failure'}"><i class="uk-icon-eye uk-icon-justify"></i>{ App.i18n.get(deploy.status) }</span>
|
<span class="uk-badge uk-text-small uk-badge-danger" if="{deploy.status === 'failure' || deploy.status === 'error'}"><i class="uk-icon-eye uk-icon-justify"></i>{ App.i18n.get(deploy.status) }</span>
|
||||||
<span class="uk-badge uk-text-small uk-badge-warning" if="{deploy.building}"><i class="uk-icon-spinner uk-icon-spin"></i>{ App.i18n.get(deploy.status) }</span>
|
<span class="uk-badge uk-text-small uk-badge-warning" if="{deploy.building && deploy.status !== 'error'}"><i class="uk-icon-spinner uk-icon-spin"></i>{ App.i18n.get(deploy.status) }</span>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>{ deploy.number }</td>
|
<td>{ deploy.number }</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user