Add a button to Manage Incident updates

Also removed the link on the overview pages to re-align them with other components
This commit is contained in:
Nico Stapelbroek
2018-01-14 22:09:00 +01:00
parent 5dc595d55b
commit 72b029e0e9
3 changed files with 15 additions and 13 deletions

View File

@@ -235,6 +235,7 @@ return [
'remove' => 'Remove',
'invite' => 'Invite',
'signup' => 'Sign Up',
'manage_updates' => 'Manage Updates',
// Other
'optional' => '* Optional',

View File

@@ -22,12 +22,13 @@
@foreach($incidents as $incident)
<div class="row striped-list-item">
<div class="col-xs-6">
<i class="{{ $incident->icon }}"></i> <a href="{{ cachet_route('dashboard.incidents.updates', [$incident->id]) }}"><strong>{{ $incident->name }}</strong></a> <span class="badge badge-info">{{ trans_choice('dashboard.incidents.updates.count', $incident->updates()->count()) }}</span>
<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>
@endif
</div>
<div class="col-xs-6 text-right">
<a href="{{ cachet_route('dashboard.incidents.updates', [$incident->id]) }}" class="btn btn-info">{{ trans('forms.manage_updates') }}</a>
<a href="{{ cachet_route('dashboard.incidents.edit', [$incident->id]) }}" class="btn btn-default">{{ trans('forms.edit') }}</a>
<a href="{{ cachet_route('dashboard.incidents.delete', [$incident->id], 'delete') }}" class="btn btn-danger confirm-action" data-method='DELETE'>{{ trans('forms.delete') }}</a>
</div>

View File

@@ -25,7 +25,7 @@
@foreach($updates as $update)
<div class="row striped-list-item">
<div class="col-xs-6">
<a href="{{ cachet_route('dashboard.incidents.updates.edit', ['incident' => $incident, 'incident_update' => $update]) }}"><strong>{{ Str::words($update->message, 8) }}</strong></a>
<strong>{{ Str::words($update->message, 8) }}</strong>
<p><small>{{ trans('cachet.incidents.posted', ['timestamp' => $update->created_at_diff]) }}</small></p>
</div>
<div class="col-xs-6 text-right">