Refactor error message styling in deployment show.blade.php

This commit is contained in:
Andras Bacsai
2024-04-17 10:49:30 +02:00
parent ac98f5862a
commit 17955fc419

View File

@@ -87,9 +87,9 @@
@foreach (decode_remote_command_output($application_deployment_queue) as $line) @foreach (decode_remote_command_output($application_deployment_queue) as $line)
<span @class([ <span @class([
'dark:text-warning whitespace-pre-line' => $line['hidden'], 'dark:text-warning whitespace-pre-line' => $line['hidden'],
'text-red-500 font-bold whitespace-pre-line' => $line['type'] == 'stderr', 'text-red-500 font-bold' => $line['type'] == 'stderr',
])>[{{ $line['timestamp'] }}] @if ($line['hidden']) ])>[{{ $line['timestamp'] }}] @if ($line['hidden'])
<br><br>COMMAND: {{ $line['command'] }}<br><br>OUTPUT : <br><br>[COMMAND] {{ $line['command'] }}<br>[OUTPUT]
@endif @if (str($line['output'])->contains('http://') || str($line['output'])->contains('https://')) @endif @if (str($line['output'])->contains('http://') || str($line['output'])->contains('https://'))
@php @php
$line['output'] = preg_replace( $line['output'] = preg_replace(
@@ -100,8 +100,8 @@
@endphp {!! $line['output'] !!} @endphp {!! $line['output'] !!}
@else @else
{{ $line['output'] }} {{ $line['output'] }}
@endif @endif
<br>
</span> </span>
@endforeach @endforeach
@else @else