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