Rearrange source to src dir.
[redakcja.git] / src / cover / templates / cover / image_list.html
1 {% extends "catalogue/base.html" %}
2 {% load i18n %}
3 {% load thumbnail pagination_tags %}
4
5 {% block titleextra %}{% trans "Cover images" %}{% endblock %}
6
7 {% block content %}
8 <h1>{% trans "Cover images" %}</h1>
9
10 {% if can_add %}
11     <a href="{% url 'cover_add_image' %}">{% trans "Add new" %}</a>
12 {% endif %}
13
14 <ul>
15 {% autopaginate object_list 100 %}
16 {% for image in object_list %}
17     <a href="{{ image.get_absolute_url }}" style="display:inline-block; width:200px;">
18     
19     <img style="height: 100px"
20         src="{% thumbnail image.file "x100" as thumb %}
21                 {{ thumb.url }}
22              {% empty %}
23                 {{ image.file.url }}
24              {% endthumbnail %}" />
25         <br/>
26         {{ image }}</a>
27 {% endfor %}
28 {% paginate %}
29 </ul>
30
31 {% endblock %}