lasthourcloud/resources/views/livewire/project/application/deployment-logs.blade.php

19 lines
1.1 KiB
PHP
Raw Normal View History

2023-06-02 10:34:45 +00:00
<div class="pt-4">
2023-05-31 12:42:37 +00:00
<livewire:project.application.deployment-navbar :activity="$activity" :application="$application" :deployment_uuid="$deployment_uuid" />
2023-05-31 10:38:36 +00:00
@if (data_get($activity, 'properties.status') === 'in_progress')
2023-06-16 10:35:40 +00:00
<div class="flex items-center gap-1 pt-2 ">Deployment is
2023-06-05 10:07:55 +00:00
<div class="text-warning"> {{ Str::headline(data_get($activity, 'properties.status')) }}.</div>
<x-loading class="loading-ring" />
2023-05-31 12:42:37 +00:00
</div>
2023-06-16 10:35:40 +00:00
<div class="">Logs will be updated automatically.</div>
2023-05-31 12:42:37 +00:00
@else
2023-06-16 10:35:40 +00:00
<div class="pt-2 ">Deployment is <span
2023-06-05 10:07:55 +00:00
class="text-warning">{{ Str::headline(data_get($activity, 'properties.status')) }}</span>.
</div>
2023-05-31 10:38:36 +00:00
@endif
<div
class="scrollbar flex flex-col-reverse w-full overflow-y-auto border border-solid rounded border-coolgray-300 max-h-[32rem] p-4 mt-4 text-xs text-white">
<pre class="font-mono whitespace-pre-wrap" @if ($isKeepAliveOn) wire:poll.2000ms="polling" @endif>{{ \App\Actions\CoolifyTask\RunRemoteProcess::decodeOutput($activity) }}</pre>
</div>
</div>