Using cache middleware instead of various caching micro-strategies,
[wolnelektury.git] / apps / 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 {% thumbnail picture.image_file "535" upscale="false" as thumb %}
10 <img class="cover" src="{{thumb.url}}"/>
11 {% endthumbnail %}
12 {% endblock %}
13
14
15 {% block book-box-extra-info %}
16 {% if themes or things%}
17     <div class="hidden-box-wrapper" id="theme-list-wrapper">
18         <p><a class="hidden-box-trigger theme-list-link"
19                 href="#">{% trans "Motifs, themes and objects" %}</a></p>
20         <div class="hidden-box">
21           {% if themes %}
22           <p>{% trans "Motifs and themes" %}</p>
23           <ul>
24             {% for theme in themes %}
25             <li><a href="{% url 'picture_viewer' picture.slug %}#theme-{{theme.slug}}">{{ theme }}</a></li>
26                 {% endfor %}
27             </ul>
28             {% endif %}
29             {% if things %}
30           <p>{% trans "Objects" %}</p>
31           <ul>
32             {% for thing in things %}
33             <li><a href="{% url 'picture_viewer' picture.slug %}#object-{{thing.slug}}">{{ thing }}</a></li>
34             {% endfor %}
35           </ul>
36           {% endif %}
37         </div>
38     </div>
39 {% else %}
40         <p>&nbsp;</p>
41 {% endif %}
42 {% endblock %}
43
44
45 {% block right-column %}
46 <div class="right-column">
47   <div class="other-tools">
48     <h2 class="mono">{% trans "See" %}</h2>
49     <ul class="plain">
50       {% if extra_info.source_url %}
51       <li><a href="{{ extra_info.source_url }}">{% trans "Source" %}</a> {% trans "of the picture" %}</li>
52       {% endif %}
53       <li><a href="{{ picture.xml_file.url }}">{% trans "Source XML file" %}</a></li>
54       {% if extra_info.about and not hide_about %}
55       <li>{% trans "Picture on" %} <a href="{{ extra_info.about }}">{% trans "Editor's Platform" %}</a></li>
56       {% endif %}
57       {% if picture.wiki_link %}
58       <li><a href="{{ picture.wiki_link }}">{% trans "Picture description on Wikipedia" %}</a></li>
59       {% endif %}
60     </ul>
61   </div>
62
63   {% comment %}
64   <div class="other-download">
65     <h2 class="mono">{% trans "Download" %}</h2>
66     <ul class="plain">
67       <li>
68         {% if related.media.mp3 or related.media.ogg or related.media.daisy %}
69         {% trans "Download all audiobooks for this book" %}:
70         {% download_audio book %}.
71         {% endif %}
72       </li>
73       {% custom_pdf_link_li book %}
74     </ul>
75   </div>
76   {% endcomment %}
77 </div>
78 {% endblock %}