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