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
-2
View File
@@ -29,8 +29,6 @@ return [
'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',
+2 -2
View File
@@ -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">&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