33 lines
979 B
HTML
33 lines
979 B
HTML
{% extends "layout.html" %}
|
|
{% block title %}{{ album }}{% endblock %}
|
|
{% block content %}
|
|
|
|
<h1>Album: {{ album }}</h1>
|
|
|
|
<ul class="photo-grid">
|
|
|
|
{% for photo in photos %}
|
|
<li class="portrait">
|
|
<div class="dummy"></div>
|
|
<div class="photo-grid-item">
|
|
<a href="{{ url_for('photo.view_photo', key=photo['key']) }}">
|
|
<img src="{{ app['photo_url'] }}/{{ photo['data']['thumb'] }}" width="100%" height="100%">
|
|
<span class="name">{{ photo["data"]["caption"] }}</span>
|
|
</a>
|
|
</div>
|
|
</li>
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
<div class="clear"></div>
|
|
|
|
{% if session["login"] %}
|
|
<h1>Administrative Options</h1>
|
|
|
|
<ul>
|
|
<li><a href="{{ url_for('photo.upload') }}">Upload a Photo</a></li>
|
|
{% if photos|length > 0 %}<li><a href="{{ url_for('photo.arrange_photos', album=album) }}">Rearrange Photos</a></li>{% endif %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% endblock %} |