handle next/prev image in an album
This commit is contained in:
parent
085c1dee88
commit
ac08b1fc84
4 changed files with 81 additions and 9 deletions
|
|
@ -3,21 +3,23 @@
|
|||
{% block content %}
|
||||
{% if not album_dir.is_root %}
|
||||
<p>
|
||||
<a href="..">up</a>
|
||||
<a href="..">
|
||||
<i class="arrow arrow-up"></i>
|
||||
</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% if album_dir.children %}
|
||||
<h1>Albums</h1>
|
||||
<div id="album-children">
|
||||
<ul id="album-children">
|
||||
{% for child in album_dir.children %}
|
||||
<div class="album">
|
||||
<li class="album">
|
||||
<a href="{{child.path.name}}/">
|
||||
{{child.path.name}}
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
{% if album_dir.images %}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,25 @@
|
|||
|
||||
{% block content %}
|
||||
<div id="nav">
|
||||
prev
|
||||
<a href="..">up</a>
|
||||
next
|
||||
<div>
|
||||
{% if prev_image %}
|
||||
<a href="{{prev_image.html_filename()}}">
|
||||
<i class="arrow arrow-left"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div>
|
||||
<a href="..">
|
||||
<i class="arrow arrow-up"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
{% if next_image %}
|
||||
<a href="{{next_image.html_filename()}}">
|
||||
<i class="arrow arrow-right"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="photo">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue