Skip to content

Commit

Permalink
Merge pull request #3809 from Data-Kiss/better-user-accountability
Browse files Browse the repository at this point in the history
Add username to the dashboard of who logged an incident or any incident updates.
  • Loading branch information
jbrooksuk committed Nov 2, 2019
2 parents e0df467 + 74b840a commit db7ab0d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/lang/en/cachet.php
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion resources/lang/en/dashboard.php
Expand Up @@ -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.',
Expand Down
2 changes: 1 addition & 1 deletion resources/views/dashboard/incidents/index.blade.php
Expand Up @@ -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">
Expand Down
Expand Up @@ -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">
Expand Down

0 comments on commit db7ab0d

Please sign in to comment.