fix: deployments ui
This commit is contained in:
parent
070573f0df
commit
90291b2edf
@ -23,30 +23,28 @@
|
|||||||
data_get($deployment, 'status') === 'error',
|
data_get($deployment, 'status') === 'error',
|
||||||
'border-success hover:bg-success' =>
|
'border-success hover:bg-success' =>
|
||||||
data_get($deployment, 'status') === 'finished',
|
data_get($deployment, 'status') === 'finished',
|
||||||
]) @if (data_get($deployment, 'status') !== 'cancelled by system' && data_get($deployment, 'status') !== 'queued')
|
]) href="{{ $current_url . '/' . data_get($deployment, 'deployment_uuid') }}"
|
||||||
href="{{ $current_url . '/' . data_get($deployment, 'deployment_uuid') }}"
|
|
||||||
@endif
|
|
||||||
class="hover:no-underline">
|
class="hover:no-underline">
|
||||||
<div class="flex flex-col justify-start">
|
<div class="flex flex-col justify-start">
|
||||||
<div>
|
<div class="flex gap-1">
|
||||||
{{ $deployment->created_at }} UTC
|
{{ $deployment->created_at }} UTC
|
||||||
<span class=" text-warning">></span>
|
<span class=" text-warning">></span>
|
||||||
{{ $deployment->status }}
|
{{ $deployment->status }}
|
||||||
|
</div>
|
||||||
@if (data_get($deployment, 'pull_request_id'))
|
@if (data_get($deployment, 'pull_request_id'))
|
||||||
|
<div>
|
||||||
<span class=" text-warning">></span>
|
<span class=" text-warning">></span>
|
||||||
Pull Request #{{ data_get($deployment, 'pull_request_id') }}
|
Pull Request #{{ data_get($deployment, 'pull_request_id') }}
|
||||||
@if (data_get($deployment, 'is_webhook'))
|
@if (data_get($deployment, 'is_webhook'))
|
||||||
(Webhook)
|
(Webhook)
|
||||||
@endif
|
@endif
|
||||||
@elseif (data_get($deployment, 'is_webhook'))
|
Webhook (SHA
|
||||||
<span class=" text-warning">></span>
|
|
||||||
</div>
|
|
||||||
Webhook (sha
|
|
||||||
@if (data_get($deployment, 'commit'))
|
@if (data_get($deployment, 'commit'))
|
||||||
{{ data_get($deployment, 'commit') }})
|
{{ data_get($deployment, 'commit') }})
|
||||||
@else
|
@else
|
||||||
HEAD)
|
HEAD)
|
||||||
@endif
|
@endif
|
||||||
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -60,15 +58,14 @@
|
|||||||
<span class="font-bold" x-text="measure_finished_time()">0s</span>
|
<span class="font-bold" x-text="measure_finished_time()">0s</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</a>
|
||||||
</a>
|
@empty
|
||||||
@empty
|
<div class="">No deployments found</div>
|
||||||
<div class="">No deployments found</div>
|
@endforelse
|
||||||
@endforelse
|
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/utc.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/utc.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/relativeTime.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/relativeTime.js"></script>
|
<script>
|
||||||
<script>
|
|
||||||
document.addEventListener('alpine:init', () => {
|
document.addEventListener('alpine:init', () => {
|
||||||
let timers = {};
|
let timers = {};
|
||||||
|
|
||||||
@ -100,5 +97,5 @@
|
|||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user