updates
This commit is contained in:
@@ -6,17 +6,30 @@
|
||||
<a @class([
|
||||
'bg-coolgray-200 p-2 border-l border-dashed transition-colors hover:no-underline',
|
||||
'cursor-not-allowed hover:bg-coolgray-200' =>
|
||||
$deployment->status === 'queued' ||
|
||||
$deployment->status === 'cancelled by system',
|
||||
data_get($deployment, 'status') === 'queued' ||
|
||||
data_get($deployment, 'status') === 'cancelled by system',
|
||||
'border-warning hover:bg-warning hover:text-black' =>
|
||||
$deployment->status === 'in_progress',
|
||||
'border-error hover:bg-error' => $deployment->status === 'error',
|
||||
'border-success hover:bg-success' => $deployment->status === 'finished',
|
||||
]) @if ($deployment->status !== 'cancelled by system' && $deployment->status !== 'queued')
|
||||
href="{{ $current_url . '/' . $deployment->extra_attributes['deployment_uuid'] }}"
|
||||
data_get($deployment, 'status') === 'in_progress',
|
||||
'border-error hover:bg-error' =>
|
||||
data_get($deployment, 'status') === 'error',
|
||||
'border-success hover:bg-success' =>
|
||||
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') }}"
|
||||
@endif
|
||||
class="hover:no-underline">
|
||||
<div class="flex flex-col justify-start">
|
||||
@if (data_get($deployment, 'pull_request_id'))
|
||||
<div>Pull Request #{{ data_get($deployment, 'pull_request_id') }}</div>
|
||||
@else
|
||||
<div>Commit:
|
||||
@if (data_get($deployment, 'commit'))
|
||||
{{ data_get($deployment, 'commit') }}
|
||||
@else
|
||||
HEAD
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div>
|
||||
{{ $deployment->status }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user