1 {% extends "base/base.html" %}
3 {% load catalogue_tags pagination_tags %}
7 {% block titleextra %}{{ picture.title }}{% endblock %}
9 {% block bodyid %}picture-detail{% endblock %}
12 <h1>{{picture.title}}</h1>
15 <div id='breadcrumbs'>
16 {% if categories.author %}
17 {% for tag in categories.author %}
18 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
24 {% thumbnail picture.image_file "400x500" upscale="false" as im %}
25 <img style="margin:{{ im|margin:"500x500" }}" src="{{ im.url }}" width="{{ im.x }}" height="{{ im.y }}"/>
28 {% if picture.info.license %}
29 <p>{% trans "Work is licensed under " %} <a href="{{ picture.info.license }}">{{ picture.info.license_description }}</a>.</p>
31 <p>{% trans "Based on" %}: {{ picture.info.source_name }}</p>
32 {% if picture.info.description %}
33 <div id="description">
34 <div id='description-long'>{{ picture.info.description|safe }}</div>
35 {# <div id='description-short'>{{ picture.info.description|safe|truncatewords_html:30 }}</div> #}
37 <div id="toggle-description"><p></p></div>
43 <h2>{% trans "Details" %}</h2>
47 {% for tag in categories.author %}
48 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
53 {% for tag in categories.epoch %}
54 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
59 {% for tag in categories.kind %}
60 <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
64 <h2>{% trans "Other resources" %}</h2>
66 {% if picture.info.source_url %}
67 <li><a href="{{ picture.info.source_url }}">{% trans "Source of the image" %}</a></li>
69 {% if picture.info.about and not hide_about %}
70 <li><a href="{{ picture.info.about }}">{% trans "Image on the Editor's Platform" %}</a></li>
73 <p><a href="{{ picture.xml_file.url }}">{% trans "View XML source" %}</a></p>
75 <div id="themes-list">
76 <h2>{% trans "Work's themes " %}</h2>
78 {% for theme in picture_themes %}
79 <li><a href="{{ theme.get_absolute_url }}">{{ theme }} ({{ theme.count }})</a></li>
83 <div class="clearboth"></div>