cover image repo
[redakcja.git] / apps / cover / templates / cover / image_list.html
1 {% extends "catalogue/base.html" %}
2 {% load i18n %}
3 {% load url from future %}
4 {% load thumbnail pagination_tags %}
5
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 }}">
18     
19     <img style="height: 200px"
20         src="{% thumbnail image.file "x200" as thumb %}
21                 {{ thumb.url }}
22              {% empty %}
23                 {{ image.file.url }}
24              {% endthumbnail %}" />
25         {{ image }}</a>
26 {% endfor %}
27 {% paginate %}
28 </ul>
29
30 {% endblock %}