lasthourcloud/resources/views/livewire/project/application/rollback.blade.php

38 lines
1.4 KiB
PHP
Raw Normal View History

2023-05-16 15:53:48 +00:00
<div x-init="$wire.loadImages">
2023-05-17 10:14:18 +00:00
<h2>Revert</h2>
2023-05-16 16:23:29 +00:00
<div>
2023-05-17 10:14:18 +00:00
<x-inputs.button isBold wire:click='loadImages'>Refresh Images</x-inputs.button>
2023-05-16 16:23:29 +00:00
</div>
2023-05-16 15:53:48 +00:00
<div wire:loading wire:target='loadImages'>
<x-loading />
</div>
2023-05-16 16:20:24 +00:00
<div wire:loading.remove wire:target='loadImages'>
2023-05-16 15:53:48 +00:00
<div class="flex flex-wrap">
@forelse ($images as $image)
<div class="w-1/2 p-2">
2023-05-16 16:20:24 +00:00
<div class="rounded-lg shadow-lg bg-coolgray-200">
2023-05-16 15:53:48 +00:00
<div class="p-2">
2023-05-16 16:20:24 +00:00
<div class="text-sm">
@if (data_get($image, 'is_current'))
<span class="font-bold text-coollabs">LIVE</span>
2023-05-16 19:49:29 +00:00
|
2023-05-16 16:20:24 +00:00
@endif
2023-05-16 19:49:29 +00:00
{{ 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-16 16:20:24 +00:00
<x-inputs.button wire:click="revertImage('{{ data_get($image, 'tag') }}')">
2023-05-16 15:53:48 +00:00
Revert
</x-inputs.button>
</div>
</div>
</div>
@empty
<div>No images found</div>
@endforelse
</div>
</div>
</div>