Add username to the dashboard of who logged an incident or any incident updates.

This commit is contained in:
Data-Kiss
2019-10-02 21:26:07 +01:00
parent 212d807653
commit 74b840a6cc
4 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ return [
'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',

View File

@@ -35,7 +35,7 @@ return [
'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.',

View File

@@ -27,7 +27,7 @@
<p>{{ Str::words($incident->message, 5) }}</p>
@endif
@if ($incident->user)
<p><small>&mdash; {{ trans('dashboard.incidents.reported_by', ['user' => $incident->user->username]) }}</small></p>
<p><small>&mdash; {{ trans('dashboard.incidents.reported_by', ['timestamp' => $incident->created_at_diff, 'user' => $incident->user->username]) }}</small></p>
@endif
</div>
<div class="col-xs-6 text-right">

View File

@@ -26,7 +26,7 @@
<div class="row striped-list-item">
<div class="col-xs-6">
<strong>{{ Str::words($update->message, 8) }}</strong>
<p><small>{{ trans('cachet.incidents.posted', ['timestamp' => $update->created_at_diff]) }}</small></p>
<p><small>{{ trans('cachet.incidents.posted', ['timestamp' => $update->created_at_diff, 'username' => $update->user->username]) }}</small></p>
</div>
<div class="col-xs-6 text-right">
<a href="{{ cachet_route('dashboard.incidents.updates.edit', ['incident' => $incident->id, 'incident_update' => $update]) }}" class="btn btn-default">