Add username to the dashboard of who logged an incident or any incident updates.
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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.',
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<p>{{ Str::words($incident->message, 5) }}</p>
|
||||
@endif
|
||||
@if ($incident->user)
|
||||
<p><small>— {{ trans('dashboard.incidents.reported_by', ['user' => $incident->user->username]) }}</small></p>
|
||||
<p><small>— {{ 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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user