Attribute incidents to who reported them

This commit is contained in:
James Brooks
2017-09-14 19:15:52 +01:00
parent 1e3516d7b7
commit 0d30b7756b
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -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.',
@@ -24,7 +24,10 @@
<div class="col-xs-6">
<i class="{{ $incident->icon }}"></i> <strong>{{ $incident->name }}</strong> <span class="badge badge-info">{{ trans_choice('dashboard.incidents.updates.count', $incident->updates()->count()) }}</span>
@if($incident->message)
<p><small>{{ Str::words($incident->message, 5) }}</small></p>
<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>
@endif
</div>
<div class="col-xs-6 text-right">