Only dusplay the next week button if we can go to next week
This commit is contained in:
@@ -38,11 +38,13 @@
|
||||
<span aria-hidden="true">←</span> {{ trans('cachet.incidents.previous_week') }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="next @if( ! $canPageForward) disabled @endif">
|
||||
<a @if($canPageForward) href="{{ route('status-page') }}?start_date={{ $nextDate }}" @endif>
|
||||
@if($canPageForward)
|
||||
<li class="next">
|
||||
<a href="{{ route('status-page') }}?start_date={{ $nextDate }}">
|
||||
{{ trans('cachet.incidents.next_week') }} <span aria-hidden="true">→</span>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
</nav>
|
||||
@stop
|
||||
|
||||
Reference in New Issue
Block a user