chore: Refactor deployment index.blade.php for improved readability and rollback handling
This commit is contained in:
parent
cd3e2963b3
commit
e341121f61
@ -62,19 +62,21 @@ class="w-6 h-6" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<div class="flex items-center gap-1">
|
<div class="flex items-center gap-1">
|
||||||
Manual @if (data_get($deployment, 'rollback') === true)
|
@if (data_get($deployment, 'rollback') === true)
|
||||||
<div class="text-xs">rolled back to </div>
|
Rollback
|
||||||
|
@else
|
||||||
|
Manual
|
||||||
@endif
|
@endif
|
||||||
@if (data_get($deployment, 'commit'))
|
@if (data_get($deployment, 'commit'))
|
||||||
<div class="dark:hover:text-white"
|
<div class="dark:hover:text-white"
|
||||||
x-on:click.stop="goto('{{ $application->gitCommitLink(data_get($deployment, 'commit')) }}')">
|
x-on:click.stop="goto('{{ $application->gitCommitLink(data_get($deployment, 'commit')) }}')">
|
||||||
<div class="text-xs underline">
|
<div class="text-xs underline">
|
||||||
({{ data_get($deployment, 'commit') }})</div>
|
(SHA {{ data_get($deployment, 'commit') }})</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@if (data_get($deployment, 'server_name'))
|
@if (data_get($deployment, 'server_name') && $application->additional_servers->count() > 0)
|
||||||
<div class="flex gap-1">
|
<div class="flex gap-1">
|
||||||
Server: {{ data_get($deployment, 'server_name') }}
|
Server: {{ data_get($deployment, 'server_name') }}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user