Use Laravel pagination links. Closes #2415
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -22,7 +22,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'previous' => '« Previous',
|
||||
'next' => 'Next »',
|
||||
'previous' => 'Previous',
|
||||
'next' => 'Next',
|
||||
|
||||
];
|
||||
|
||||
@@ -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">←</span> {{ trans('cachet.incidents.previous_week') }}
|
||||
<span aria-hidden="true">←</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">→</span>
|
||||
{{ trans('pagination.next') }} <span aria-hidden="true">→</span>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user