fixes
[wolnelektury.git] / src / catalogue / templates / catalogue / book_wide.html
1 {% extends "catalogue/book_short.html" %}
2 {% load i18n %}
3 {% load choose_fragment license_icon from catalogue_tags %}
4 {% load choose_cite from social_tags %}
5 {% load status from catalogue_tags %}
6 {% load chunks %}
7
8
9 {% block box-class %}book-wide-box{% endblock %}
10
11
12 {% block cover-link %}{% if book.get_first_text %}{% url 'book_text' book.get_first_text.slug %}{% endif %}{% endblock %}
13
14
15 {% block cover-area-extra %}
16   {% with license=book.get_extra_info_json.license %}
17     {% if license %}
18       {% license_icon license %}
19     {% endif %}
20   {% endwith %}
21 {% endblock %}
22
23
24 {% block preview-info %}
25   <p class="book-box-tools book-box-tools-warn">
26     {% chunk "book-preview-warn" %}
27   </p>
28 {% endblock %}
29
30
31
32 {% block right-column %}
33   <div class="right-column">
34     <div class="quote">
35       {% choose_cite book as cite_promo %}
36       {% if cite_promo %}
37         {{ cite.promo_box }}
38       {% else %}
39         {% choose_fragment book as fragment_promo %}
40         {% if fragment_promo %}
41           {{ fragment_promo.promo_box }}
42         {% endif %}
43       {% endif %}
44     </div>
45     {% include 'catalogue/snippets/jplayer.html' %}
46
47     {% if book|status:request.user == 'closed' %}
48       {% with form=club_form %}
49         <form method="POST" action="{% url 'club_join' %}" id="payment-form" class="wlform">
50           {% csrf_token %}
51           {% include "club/payment_form.html" %}
52           {% chunk 'club_form_bottom' %}
53         </form>
54       {% endwith %}
55
56       {% include "club/payment_info.html" %}
57     {% endif %}
58
59
60   </div>
61 {% endblock %}
62
63
64 {% block book-box-body-pre %}
65   {% include "catalogue/snippets/like_button.html" %}
66 {% endblock %}
67
68 {% block book-box-pre %}
69 {% endblock %}