From 261be1dfef7d18da1e49f915705245e9923434a4 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 24 Jun 2017 18:33:28 +0100 Subject: [PATCH] Fixes #2579 --- resources/lang/en/dashboard.php | 4 ++-- resources/views/dashboard/incidents/index.blade.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lang/en/dashboard.php b/resources/lang/en/dashboard.php index cf3842f3..893777d3 100644 --- a/resources/lang/en/dashboard.php +++ b/resources/lang/en/dashboard.php @@ -18,10 +18,10 @@ return [ 'incidents' => [ 'title' => 'Incidents & Schedule', 'incidents' => 'Incidents', - 'logged' => '{0} There are no incidents, good work.|You have logged one incident.|You have reported :count incidents.', + 'logged' => '{0} There are no incidents, good work.|[1] You have logged one incident.|[2, Inf] You have reported :count incidents.', 'incident-create-template' => 'Create Template', 'incident-templates' => 'Incident Templates', - 'updates' => '{0} Zero Updates|One Update|:count Updates', + 'updates' => '{0} Zero Updates|[1] One Update|[2] Two Updates|[3,Inf] Several Updates', '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 4ab86edc..3607fff3 100644 --- a/resources/views/dashboard/incidents/index.blade.php +++ b/resources/views/dashboard/incidents/index.blade.php @@ -24,7 +24,7 @@ @foreach($incidents as $incident)
- {{ $incident->name }} {{ trans_choice('dashboard.incidents.updates', $incident->updates->count()) }} + {{ $incident->name }} {{ trans_choice('dashboard.incidents.updates', $incident->updates()->count()) }} @if($incident->message)

{{ Str::words($incident->message, 5) }}

@endif