Use Laravel pagination links. Closes #2415

This commit is contained in:
James Brooks
2017-03-09 19:18:11 +00:00
parent c9a5363c17
commit 9a56625f09
3 changed files with 11 additions and 13 deletions

View File

@@ -27,15 +27,13 @@ return [
// Incidents
'incidents' => [
'none' => 'No incidents reported',
'past' => 'Past Incidents',
'previous_week' => 'Previous week',
'next_week' => 'Next week',
'stickied' => 'Stickied Incidents',
'scheduled' => 'Scheduled Maintenance',
'scheduled_at' => ', scheduled :timestamp',
'posted' => 'Posted :timestamp',
'status' => [
'none' => 'No incidents reported',
'past' => 'Past Incidents',
'stickied' => 'Stickied Incidents',
'scheduled' => 'Scheduled Maintenance',
'scheduled_at' => ', scheduled :timestamp',
'posted' => 'Posted :timestamp',
'status' => [
1 => 'Investigating',
2 => 'Identified',
3 => 'Watching',

View File

@@ -22,7 +22,7 @@ return [
|
*/
'previous' => '« Previous',
'next' => 'Next »',
'previous' => 'Previous',
'next' => 'Next',
];

View File

@@ -11,14 +11,14 @@
@if($can_page_backward)
<li class="previous">
<a href="{{ cachet_route('status-page') }}?start_date={{ $previous_date }}" class="links">
<span aria-hidden="true">&larr;</span> {{ trans('cachet.incidents.previous_week') }}
<span aria-hidden="true">&larr;</span> {{ trans('pagination.previous') }}
</a>
</li>
@endif
@if($can_page_forward)
<li class="next">
<a href="{{ cachet_route('status-page') }}?start_date={{ $next_date }}" class="links">
{{ trans('cachet.incidents.next_week') }} <span aria-hidden="true">&rarr;</span>
{{ trans('pagination.next') }} <span aria-hidden="true">&rarr;</span>
</a>
</li>
@endif