From 74b840a6ccc97f0fcdda44cddffe9243235f3263 Mon Sep 17 00:00:00 2001 From: Data-Kiss <39807751+Data-Kiss@users.noreply.github.com> Date: Wed, 2 Oct 2019 21:26:07 +0100 Subject: [PATCH 1/4] Add username to the dashboard of who logged an incident or any incident updates. --- resources/lang/en/cachet.php | 2 +- resources/lang/en/dashboard.php | 2 +- resources/views/dashboard/incidents/index.blade.php | 2 +- resources/views/dashboard/incidents/updates/index.blade.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/lang/en/cachet.php b/resources/lang/en/cachet.php index b15c7ad7b577..cb24fc10e7c8 100644 --- a/resources/lang/en/cachet.php +++ b/resources/lang/en/cachet.php @@ -34,7 +34,7 @@ 'stickied' => 'Stickied Incidents', 'scheduled' => 'Maintenance', 'scheduled_at' => ', scheduled :timestamp', - 'posted' => 'Posted :timestamp', + 'posted' => 'Posted :timestamp by :username', 'posted_at' => 'Posted at :timestamp', 'status' => [ 1 => 'Investigating', diff --git a/resources/lang/en/dashboard.php b/resources/lang/en/dashboard.php index 3f70a3685e87..7dc9af669deb 100644 --- a/resources/lang/en/dashboard.php +++ b/resources/lang/en/dashboard.php @@ -35,7 +35,7 @@ 'failure' => 'Something went wrong updating the incident update', ], ], - 'reported_by' => 'Reported by :user', + 'reported_by' => 'Reported :timestamp 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 14af90f0d827..69103049676e 100644 --- a/resources/views/dashboard/incidents/index.blade.php +++ b/resources/views/dashboard/incidents/index.blade.php @@ -27,7 +27,7 @@
{{ Str::words($incident->message, 5) }}
@endif @if ($incident->user) -— {{ trans('dashboard.incidents.reported_by', ['user' => $incident->user->username]) }}
+— {{ trans('dashboard.incidents.reported_by', ['timestamp' => $incident->created_at_diff, 'user' => $incident->user->username]) }}
@endif