2023-05-16 15:53:48 +00:00
|
|
|
<div x-init="$wire.loadImages">
|
2023-06-02 10:34:45 +00:00
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
<h2>Rollback</h2>
|
2023-11-20 12:49:10 +00:00
|
|
|
<x-forms.button wire:click='loadImages(true)'>Reload Available Images</x-forms.button>
|
2023-05-16 16:23:29 +00:00
|
|
|
</div>
|
2024-03-20 11:54:06 +00:00
|
|
|
<div class="pb-4 ">You can easily rollback to a previously built (local) images
|
2023-12-07 18:06:32 +00:00
|
|
|
quickly.</div>
|
2023-06-08 07:31:27 +00:00
|
|
|
<div wire:target='loadImages'>
|
2023-05-16 15:53:48 +00:00
|
|
|
<div class="flex flex-wrap">
|
2023-11-20 12:49:10 +00:00
|
|
|
@forelse ($images as $image)
|
2023-05-22 08:34:00 +00:00
|
|
|
<div class="w-2/4 p-2">
|
2024-04-17 13:16:08 +00:00
|
|
|
<div class="bg-white border rounded dark:border-black dark:bg-coolgray-100">
|
2023-05-16 15:53:48 +00:00
|
|
|
<div class="p-2">
|
2023-06-16 10:35:40 +00:00
|
|
|
<div class="">
|
2023-05-16 16:20:24 +00:00
|
|
|
@if (data_get($image, 'is_current'))
|
2024-03-25 09:41:44 +00:00
|
|
|
<span class="font-bold dark:text-warning">LIVE</span>
|
2023-05-16 19:49:29 +00:00
|
|
|
|
|
2023-05-16 16:20:24 +00:00
|
|
|
@endif
|
2023-05-22 08:34:00 +00:00
|
|
|
SHA: {{ data_get($image, 'tag') }}
|
2023-05-16 16:20:24 +00:00
|
|
|
</div>
|
|
|
|
<div class="text-xs">{{ data_get($image, 'created_at') }}</div>
|
2023-05-16 15:53:48 +00:00
|
|
|
</div>
|
|
|
|
<div class="flex justify-end p-2">
|
2023-05-22 08:34:00 +00:00
|
|
|
@if (data_get($image, 'is_current'))
|
2023-05-25 12:05:44 +00:00
|
|
|
<x-forms.button disabled tooltip="This image is currently running.">
|
2023-05-22 08:34:00 +00:00
|
|
|
Rollback
|
2023-05-25 12:05:44 +00:00
|
|
|
</x-forms.button>
|
2023-05-22 08:34:00 +00:00
|
|
|
@else
|
2023-12-07 18:06:32 +00:00
|
|
|
<x-forms.button class="bg-coolgray-100"
|
|
|
|
wire:click="rollbackImage('{{ data_get($image, 'tag') }}')">
|
2023-05-22 08:34:00 +00:00
|
|
|
Rollback
|
2023-05-25 12:05:44 +00:00
|
|
|
</x-forms.button>
|
2023-05-22 08:34:00 +00:00
|
|
|
@endif
|
2023-05-16 15:53:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-11-20 12:49:10 +00:00
|
|
|
@empty
|
|
|
|
<div>No images found locally.</div>
|
|
|
|
@endforelse
|
2023-05-16 15:53:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|