yenu/resources/templates/index.html

41 lines
1.2 KiB
HTML
Raw Normal View History

2017-03-15 00:28:27 +01:00
{% extends "layout.html" %}
{% block content %}
2017-03-17 00:23:13 +01:00
{% if pages|count > 1 %}
2017-03-28 00:19:23 +02:00
<nav aria-label="Page navigation" class="pull-right clearfix">
2017-03-17 00:23:13 +01:00
<ul class="pagination">
<li class="page-item{% ifequal current-page 1 %} disabled{% endifequal %}">
2017-03-22 01:02:51 +01:00
<a class="page-link" href="/page/{{ current-page|dec }}">
<span class="fa fa-arrow-left"></span>
Zurück
</a>
2017-03-17 00:23:13 +01:00
</li>
{% for page in pages %}
<li class="page-item{% ifequal page current-page %} active{% endifequal %}">
<a class="page-link" href="/page/{{ page }}">{{ page }}</a>
</li>
{% endfor %}
<li class="page-item{% ifequal current-page pages|count %} disabled{% endifequal %}">
2017-03-22 01:02:51 +01:00
<a class="page-link" href="/page/{{ current-page|inc }}">
Weiter
<span class="fa fa-arrow-right"></span>
</a>
2017-03-17 00:23:13 +01:00
</li>
</ul>
</nav>
2017-03-29 14:39:03 +02:00
<div class="clearfix"></div>
<hr>
2017-03-17 00:23:13 +01:00
{% endif %}
2017-03-22 01:02:51 +01:00
2017-04-03 22:23:01 +02:00
<div class="clearfix d-flex justify-content-center flex-wrap">
2017-03-22 01:02:51 +01:00
{% for image in images %}
<a href="/show/{{ image.id }}" class="thumbnail-image">
<img src="/images/thumbnails/{{ image.hash }}.png" alt="{{ image.title }}">
</a>
{% endfor %}
</div>
2017-03-17 00:23:13 +01:00
2017-03-15 00:28:27 +01:00
{% endblock %}