From 0d30b7756b877315f9b658018e3fa2e4670daac3 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Thu, 14 Sep 2017 19:15:52 +0100 Subject: [PATCH] Attribute incidents to who reported them --- resources/lang/en/dashboard.php | 1 + resources/views/dashboard/incidents/index.blade.php | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/lang/en/dashboard.php b/resources/lang/en/dashboard.php index d99fbc61..3707fc05 100644 --- a/resources/lang/en/dashboard.php +++ b/resources/lang/en/dashboard.php @@ -35,6 +35,7 @@ return [ 'failure' => 'Something went wrong updating the incident update', ], ], + 'reported_by' => 'Reported by :user', 'add' => [ 'title' => 'Report an incident', 'success' => 'Incident added.', diff --git a/resources/views/dashboard/incidents/index.blade.php b/resources/views/dashboard/incidents/index.blade.php index 78e62cf4..0f49b862 100644 --- a/resources/views/dashboard/incidents/index.blade.php +++ b/resources/views/dashboard/incidents/index.blade.php @@ -24,7 +24,10 @@
{{ $incident->name }} {{ trans_choice('dashboard.incidents.updates.count', $incident->updates()->count()) }} @if($incident->message) -

{{ Str::words($incident->message, 5) }}

+

{{ Str::words($incident->message, 5) }}

+ @endif + @if ($incident->user) +

— {{ trans('dashboard.incidents.reported_by', ['user' => $incident->user->username]) }}

@endif