album.html 949 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
{% extends 'base.html' %}
{% load staticfiles i18n thumbnail %}

{% block page_title %}{% trans "Photos" %}{% endblock %}

{% block body %}
<h1>{{ album.title }}</h1>
<h2>{{ album.date|date:"d-m-Y" }}</h2>
<div class="gallery">
    <ul class="gallery-photos row">
11
        {% for photo in album.photos %}
12
        <li class="post gallery-photo span3 has-overlay {% if forloop.counter0|divisibleby:4 %}first-child{% endif %}">
13
            <a class="gallery-box" rel="gallery" data-download="{% url 'photos:download' photo %}" href="{% thumbnail photo '1024x768' fit=False %}">
14
15
                <span class="post-inner">
                    <span class="inner-img">
16
                        <img src="{% thumbnail photo '220x220' %}" alt="" />
17
18
19
20
21
22
23
24
25
26
                    </span>
                    <span class="post-overlay">
                    </span>
                </span>
            </a>
        </li>
        {% endfor %}
    </ul>
</div>
{% endblock %}