fixes
[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}}"/>
12     {% endthumbnail %}
13   </a>
14 {% endblock %}
15
16
17 {% block extra_categories %}
18   {% with extra_info=picture.get_extra_info_json %}
19   {% if extra_info.styles %}
20     <span class="category">
21       <span class="mono"> {% trans "Style" %}:</span>&nbsp;<span class="book-box-tag">
22         {% for tag in extra_info.styles %}
23           <a>{{ tag }}</a>
24           {% if not forloop.last %}<span>, </span>{% endif %}
25         {% endfor %}
26       </span>
27     </span>
28   {% endif %}
29
30   {% if extra_info.medium %}
31     <span class="category">
32       <span class="mono"> {% trans "Medium" %}:</span>&nbsp;<span class="book-box-tag">
33         <a>{{ extra_info.medium }}</a>
34       </span>
35     </span>
36   {% endif %}
37
38   {% if extra_info.original_dimensions %}
39     <span class="category">
40       <span class="mono"> {% trans "Dimensions" %}:</span>&nbsp;<span class="book-box-tag">
41         <a>{{ extra_info.original_dimensions }}</a>
42       </span>
43     </span>
44   {% endif %}
45
46   <span class="category">
47     <span class="mono"> {% trans "Date" %}:</span>&nbsp;<span class="book-box-tag">
48       <a>{{ extra_info.created_at }}</a>
49     </span>
50   </span>
51   {% endwith %}
52 {% endblock %}
53
54
55 {% block book-box-extra-info %}
56   {% if themes or things%}
57     <div class="hidden-box-wrapper" id="theme-list-wrapper">
58       <p>
59         <a class="hidden-box-trigger theme-list-link" href="#">{% trans "Motifs, themes and objects" %}</a>
60       </p>
61       <div class="hidden-box">
62         {% if themes %}
63           <p>{% trans "Motifs and themes" %}</p>
64           <ul>
65             {% for theme in themes %}
66               <li><a href="{% url 'picture_viewer' picture.slug %}#theme-{{theme.slug}}">{{ theme }}</a></li>
67             {% endfor %}
68           </ul>
69         {% endif %}
70         {% if things %}
71           <p>{% trans "Objects" %}</p>
72           <ul>
73             {% for thing in things %}
74               <li><a href="{% url 'picture_viewer' picture.slug %}#object-{{thing.slug}}">{{ thing }}</a></li>
75             {% endfor %}
76           </ul>
77         {% endif %}
78       </div>
79     </div>
80   {% else %}
81     <p>&nbsp;</p>
82   {% endif %}
83 {% endblock %}
84
85
86 {% block right-column %}
87   {% with extra_info=picture.get_extra_info_json %}
88   <div class="right-column">
89     <div class="other-tools">
90       <h2 class="mono">{% trans "See" %}</h2>
91       <ul class="plain">
92         {% if extra_info.source_url %}
93           <li><a href="{{ extra_info.source_url }}">{% trans "Source" %}</a> {% trans "of the picture" %}</li>
94         {% endif %}
95         <li><a href="{{ picture.xml_file.url }}">{% trans "Source XML file" %}</a></li>
96         {% if extra_info.about and not hide_about %}
97           <li>{% trans "Picture on" %} <a href="{{ extra_info.about }}">{% trans "Editor's Platform" %}</a></li>
98         {% endif %}
99         {% if picture.wiki_link %}
100           <li><a href="{{ picture.wiki_link }}">{% trans "Picture description on Wikipedia" %}</a></li>
101         {% endif %}
102       </ul>
103     </div>
104   </div>
105   {% endwith %}
106 {% endblock %}