Use Laravel pagination links. Closes #2415
This commit is contained in:
@@ -27,15 +27,13 @@ return [
|
|||||||
|
|
||||||
// Incidents
|
// Incidents
|
||||||
'incidents' => [
|
'incidents' => [
|
||||||
'none' => 'No incidents reported',
|
'none' => 'No incidents reported',
|
||||||
'past' => 'Past Incidents',
|
'past' => 'Past Incidents',
|
||||||
'previous_week' => 'Previous week',
|
'stickied' => 'Stickied Incidents',
|
||||||
'next_week' => 'Next week',
|
'scheduled' => 'Scheduled Maintenance',
|
||||||
'stickied' => 'Stickied Incidents',
|
'scheduled_at' => ', scheduled :timestamp',
|
||||||
'scheduled' => 'Scheduled Maintenance',
|
'posted' => 'Posted :timestamp',
|
||||||
'scheduled_at' => ', scheduled :timestamp',
|
'status' => [
|
||||||
'posted' => 'Posted :timestamp',
|
|
||||||
'status' => [
|
|
||||||
1 => 'Investigating',
|
1 => 'Investigating',
|
||||||
2 => 'Identified',
|
2 => 'Identified',
|
||||||
3 => 'Watching',
|
3 => 'Watching',
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'previous' => '« Previous',
|
'previous' => 'Previous',
|
||||||
'next' => 'Next »',
|
'next' => 'Next',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -11,14 +11,14 @@
|
|||||||
@if($can_page_backward)
|
@if($can_page_backward)
|
||||||
<li class="previous">
|
<li class="previous">
|
||||||
<a href="{{ cachet_route('status-page') }}?start_date={{ $previous_date }}" class="links">
|
<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>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@endif
|
@endif
|
||||||
@if($can_page_forward)
|
@if($can_page_forward)
|
||||||
<li class="next">
|
<li class="next">
|
||||||
<a href="{{ cachet_route('status-page') }}?start_date={{ $next_date }}" class="links">
|
<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>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
Reference in New Issue
Block a user