fix list ordering
This commit is contained in:
parent
2c60ad645a
commit
462c6883e2
1 changed files with 7 additions and 8 deletions
|
@ -33,14 +33,13 @@
|
||||||
<h2 class="section__title">@if ($showAllCheckins) Posts @else Recent Posts @endif</h2>
|
<h2 class="section__title">@if ($showAllCheckins) Posts @else Recent Posts @endif</h2>
|
||||||
<p style="font-weight: bold; text-align: center;">Want to receive a regular email digest of updates?</p>
|
<p style="font-weight: bold; text-align: center;">Want to receive a regular email digest of updates?</p>
|
||||||
<p style="text-align: center;">Ask me and I'll add you to the list: weekly, fortnightly and monthly options available (or daily if you're really keen).</p>
|
<p style="text-align: center;">Ask me and I'll add you to the list: weekly, fortnightly and monthly options available (or daily if you're really keen).</p>
|
||||||
<ol start="{{ count($trip->checkins) }}" @if(!($showAllCheckins || $toCheckin || $fromCheckin)) reversed @endif>
|
<ol @if(!($showAllCheckins || $toCheckin || $fromCheckin)) start="{{ count($trip->checkins) }}" reversed @endif>
|
||||||
@if($showAllCheckins || $toCheckin || $fromCheckin)
|
@if($showAllCheckins || $toCheckin || $fromCheckin)
|
||||||
@php $checkinsList = $trip->checkins @endphp
|
@php $checkinsList = $trip->checkins @endphp
|
||||||
@else
|
@else
|
||||||
@php $checkinsList = array_slice(array_reverse($trip->checkins), 0, 10) @endphp
|
@php $checkinsList = array_slice(array_reverse($trip->checkins), 0, 10) @endphp
|
||||||
@endif
|
@endif
|
||||||
|
@include('partials.checkins-list')
|
||||||
@include('partials.checkins-list')
|
|
||||||
</ol>
|
</ol>
|
||||||
@if (!$showAllCheckins)
|
@if (!$showAllCheckins)
|
||||||
<p><a id="allCheckinsLink" href="?show=all">Show all posts</a></p>
|
<p><a id="allCheckinsLink" href="?show=all">Show all posts</a></p>
|
||||||
|
|
Loading…
Reference in a new issue