From 72b029e0e94201680c435a5546d033cd5bcfae19 Mon Sep 17 00:00:00 2001 From: Nico Stapelbroek Date: Sun, 14 Jan 2018 22:09:00 +0100 Subject: [PATCH] Add a button to Manage Incident updates Also removed the link on the overview pages to re-align them with other components --- resources/lang/en/forms.php | 23 ++++++++++--------- .../views/dashboard/incidents/index.blade.php | 3 ++- .../incidents/updates/index.blade.php | 2 +- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/resources/lang/en/forms.php b/resources/lang/en/forms.php index b057b053..aacc8e03 100644 --- a/resources/lang/en/forms.php +++ b/resources/lang/en/forms.php @@ -224,17 +224,18 @@ return [ ], // Buttons - 'add' => 'Add', - 'save' => 'Save', - 'update' => 'Update', - 'create' => 'Create', - 'edit' => 'Edit', - 'delete' => 'Delete', - 'submit' => 'Submit', - 'cancel' => 'Cancel', - 'remove' => 'Remove', - 'invite' => 'Invite', - 'signup' => 'Sign Up', + 'add' => 'Add', + 'save' => 'Save', + 'update' => 'Update', + 'create' => 'Create', + 'edit' => 'Edit', + 'delete' => 'Delete', + 'submit' => 'Submit', + 'cancel' => 'Cancel', + 'remove' => 'Remove', + 'invite' => 'Invite', + 'signup' => 'Sign Up', + 'manage_updates' => 'Manage Updates', // Other 'optional' => '* Optional', diff --git a/resources/views/dashboard/incidents/index.blade.php b/resources/views/dashboard/incidents/index.blade.php index c11bdab9..78e62cf4 100644 --- a/resources/views/dashboard/incidents/index.blade.php +++ b/resources/views/dashboard/incidents/index.blade.php @@ -22,12 +22,13 @@ @foreach($incidents as $incident)
- {{ $incident->name }} {{ trans_choice('dashboard.incidents.updates.count', $incident->updates()->count()) }} + {{ $incident->name }} {{ trans_choice('dashboard.incidents.updates.count', $incident->updates()->count()) }} @if($incident->message)

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

@endif
diff --git a/resources/views/dashboard/incidents/updates/index.blade.php b/resources/views/dashboard/incidents/updates/index.blade.php index 997a0570..5d0a41fa 100644 --- a/resources/views/dashboard/incidents/updates/index.blade.php +++ b/resources/views/dashboard/incidents/updates/index.blade.php @@ -25,7 +25,7 @@ @foreach($updates as $update)
- {{ Str::words($update->message, 8) }} + {{ Str::words($update->message, 8) }}

{{ trans('cachet.incidents.posted', ['timestamp' => $update->created_at_diff]) }}