show prev/next on first and last element

This commit is contained in:
Flummi 2017-10-23 22:24:13 +02:00
parent 04db63ea0d
commit 342825653e

View File

@ -20,7 +20,11 @@
</div>
<div class="wrapper">
<div class="medium">
{% if next != null %}<a id="next" href="/{{ next }}"><i class="fa fa-arrow-left" aria-hidden="true"></i></a>{% endif %}
{% if next != null %}
<a id="next" href="/{{ next }}"><i class="fa fa-arrow-left" aria-hidden="true"></i></a>
{% else %}
<a id="next" href="#" style="color: #ccc !important;"><i class="fa fa-arrow-left" aria-hidden="true"></i></a>
{% endif %}
{% if item == "video" %}
<video id="my-video" class="video-js" src="{{ dest }}" preload="auto" height="360" width="640" controls autoplay loop data-setup="{}"></video>
{% elseif item == "audio" %}
@ -37,7 +41,11 @@
{% else %}
<h1>404 - Not f0cked</h1>
{% endif %}
{% if prev != null %}<a id="prev" href="/{{ prev }}"><i class="fa fa-arrow-right" aria-hidden="true"></i></a>{% endif %}
{% if prev != null %}
<a id="prev" href="/{{ prev }}"><i class="fa fa-arrow-right" aria-hidden="true"></i></a>
{% else %}
<a id="prev" href="#" style="color: #ccc !important;"><i class="fa fa-arrow-right" aria-hidden="true"></i></a>
{% endif %}
</div>
</div>