From 3e2d3735ccb2c6babd6645d0eba56287822ee889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 30 Sep 2021 09:03:20 +0200 Subject: [PATCH 1/7] Fix ticket.show message user name --- resources/views/ticket/show.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/ticket/show.blade.php b/resources/views/ticket/show.blade.php index 3bd05fa..7649f2e 100644 --- a/resources/views/ticket/show.blade.php +++ b/resources/views/ticket/show.blade.php @@ -106,8 +106,8 @@
Ouvrir la pièce jointe
@endif

{!! __('Créé le :date par :userName', [ - 'date' => \Carbon\Carbon::parse($ticket->created_at)->format('d/m/Y à H:i'), - 'userName' => $ticket->user ? $ticket->user->name : __('Utilisateur supprimé') + 'date' => \Carbon\Carbon::parse($message->created_at)->format('d/m/Y à H:i'), + 'userName' => $message->user ? $message->user->name : __('Utilisateur supprimé') ]) !!} @endif From 1d83112b7cd07deb0e85aa13b30f911e02d6400c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 30 Sep 2021 09:09:04 +0200 Subject: [PATCH 2/7] Ticket 376 fix ticket.show and ticket.index (preview message) --- resources/views/ticket/index.blade.php | 12 ++++-------- resources/views/ticket/show.blade.php | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/resources/views/ticket/index.blade.php b/resources/views/ticket/index.blade.php index 49b1144..e71a3ac 100644 --- a/resources/views/ticket/index.blade.php +++ b/resources/views/ticket/index.blade.php @@ -89,11 +89,7 @@ $userPr = Auth::user()->sites ?? collect([]); {{ $ticket->site->name }} - @if ($ticket->type->equals(TicketType::bug())) - {{ $ticket->type->label }} - @else - {{ $ticket->type->label }} - @endif + {{ $ticket->type->label }} @if ($ticket->file !== null) @@ -130,12 +126,12 @@ $userPr = Auth::user()->sites ?? collect([]);