Code layout change.
[wolnelektury.git] / src / picture / templates / picture / picture_wide.html
1 {% extends "picture/picture_short.html" %}
2 {% load i18n %}
3 {% load picture_tags thumbnail %}
4
5
6 {% block box-class %}book-wide-box{% endblock %}
7
8 {% block picture-view %}
9 <a href="{{ main_link }}">
10 {% thumbnail picture.image_file "535" upscale=0 as thumb %}
11 <img class="cover" src="{{thumb.url}}"/></a>
12 {% endthumbnail %}
13 {% endblock %}
14
15
16 {% block extra_categories %}
17 {% if picture.extra_info.styles %}
18 <span class="category">
19 <span class="mono"> {% trans "Style" %}:</span>&nbsp;<span class="book-box-tag">
20     {% for tag in picture.extra_info.styles %}
21         <a>{{ tag }}</a>
22         {% if not forloop.last %}<span>, </span>{% endif %}
23     {% endfor %}
24 </span></span>
25 {% endif %}
26
27 {% if picture.extra_info.medium %}
28 <span class="category">
29 <span class="mono"> {% trans "Medium" %}:</span>&nbsp;<span class="book-box-tag">
30     <a>{{ picture.extra_info.medium }}</a>
31 </span></span>
32 {% endif %}
33
34 {% if picture.extra_info.original_dimensions %}
35 <span class="category">
36 <span class="mono"> {% trans "Dimensions" %}:</span>&nbsp;<span class="book-box-tag">
37     <a>{{ picture.extra_info.original_dimensions }}</a>
38 </span></span>
39 {% endif %}
40
41 <span class="category">
42 <span class="mono"> {% trans "Date" %}:</span>&nbsp;<span class="book-box-tag">
43     <a>{{ picture.extra_info.created_at }}</a>
44 </span></span>
45
46 {% endblock %}
47
48
49 {% block book-box-extra-info %}
50 {% if themes or things%}
51     <div class="hidden-box-wrapper" id="theme-list-wrapper">
52         <p><a class="hidden-box-trigger theme-list-link"
53                 href="#">{% trans "Motifs, themes and objects" %}</a></p>
54         <div class="hidden-box">
55           {% if themes %}
56           <p>{% trans "Motifs and themes" %}</p>
57           <ul>
58             {% for theme in themes %}
59             <li><a href="{% url 'picture_viewer' picture.slug %}#theme-{{theme.slug}}">{{ theme }}</a></li>
60                 {% endfor %}
61             </ul>
62             {% endif %}
63             {% if things %}
64           <p>{% trans "Objects" %}</p>
65           <ul>
66             {% for thing in things %}
67             <li><a href="{% url 'picture_viewer' picture.slug %}#object-{{thing.slug}}">{{ thing }}</a></li>
68             {% endfor %}
69           </ul>
70           {% endif %}
71         </div>
72     </div>
73 {% else %}
74         <p>&nbsp;</p>
75 {% endif %}
76 {% endblock %}
77
78
79 {% block right-column %}
80 <div class="right-column">
81   <div class="other-tools">
82     <h2 class="mono">{% trans "See" %}</h2>
83     <ul class="plain">
84       {% if extra_info.source_url %}
85       <li><a href="{{ extra_info.source_url }}">{% trans "Source" %}</a> {% trans "of the picture" %}</li>
86       {% endif %}
87       <li><a href="{{ picture.xml_file.url }}">{% trans "Source XML file" %}</a></li>
88       {% if extra_info.about and not hide_about %}
89       <li>{% trans "Picture on" %} <a href="{{ extra_info.about }}">{% trans "Editor's Platform" %}</a></li>
90       {% endif %}
91       {% if picture.wiki_link %}
92       <li><a href="{{ picture.wiki_link }}">{% trans "Picture description on Wikipedia" %}</a></li>
93       {% endif %}
94     </ul>
95   </div>
96
97   {% comment %}
98   <div class="other-download">
99     <h2 class="mono">{% trans "Download" %}</h2>
100     <ul class="plain">
101       <li>
102         {% if related.media.mp3 or related.media.ogg or related.media.daisy %}
103         {% trans "Download all audiobooks for this book" %}:
104         {% download_audio book %}.
105         {% endif %}
106       </li>
107       {% custom_pdf_link_li book %}
108     </ul>
109   </div>
110   {% endcomment %}
111 </div>
112 {% endblock %}