fixes
[wolnelektury.git] / src / catalogue / templates / catalogue / book_wide.html
index 26ee55d..9413ee7 100644 (file)
@@ -1,39 +1,68 @@
 {% extends "catalogue/book_short.html" %}
 {% load i18n %}
-{% load choose_fragment download_audio tag_list custom_pdf_link_li license_icon source_name from catalogue_tags %}
+{% load choose_fragment license_icon from catalogue_tags %}
 {% load choose_cite from social_tags %}
-{% load ssi_include from ssify %}
+{% load status from catalogue_tags %}
+{% load chunks %}
 
 
 {% block box-class %}book-wide-box{% endblock %}
 
 
+{% block cover-link %}{% if book.get_first_text %}{% url 'book_text' book.get_first_text.slug %}{% endif %}{% endblock %}
+
+
 {% block cover-area-extra %}
-{% if extra_info.license %}
-  {% license_icon extra_info.license %}
-{% endif %}
+  {% with license=book.get_extra_info_json.license %}
+    {% if license %}
+      {% license_icon license %}
+    {% endif %}
+  {% endwith %}
+{% endblock %}
+
+
+{% block preview-info %}
+  <p class="book-box-tools book-box-tools-warn">
+    {% chunk "book-preview-warn" %}
+  </p>
 {% endblock %}
 
 
+
 {% block right-column %}
   <div class="right-column">
     <div class="quote">
-      {% choose_cite book.pk as cite_promo %}
-      {% choose_fragment book.pk unless=cite_promo as fragment_promo %}
-      {{ cite_promo.if }}
-        {% ssi_include 'social_cite' pk=cite_promo %}
-      {{ cite_promo.endif }}
-      {{ fragment_promo.if }}
-        {% ssi_include 'catalogue_fragment_promo' pk=fragment_promo %}
-      {{ fragment_promo.endif }}
+      {% choose_cite book as cite_promo %}
+      {% if cite_promo %}
+        {{ cite.promo_box }}
+      {% else %}
+        {% choose_fragment book as fragment_promo %}
+       {% if fragment_promo %}
+         {{ fragment_promo.promo_box }}
+       {% endif %}
+      {% endif %}
     </div>
     {% include 'catalogue/snippets/jplayer.html' %}
+
+    {% if book|status:request.user == 'closed' %}
+      {% with form=club_form %}
+        <form method="POST" action="{% url 'club_join' %}" id="payment-form" class="wlform">
+          {% csrf_token %}
+          {% include "club/payment_form.html" %}
+          {% chunk 'club_form_bottom' %}
+        </form>
+      {% endwith %}
+
+      {% include "club/payment_info.html" %}
+    {% endif %}
+
+
   </div>
 {% endblock %}
 
 
 {% block book-box-body-pre %}
-    {% include "catalogue/snippets/like_button.html" %}
+  {% include "catalogue/snippets/like_button.html" %}
 {% endblock %}
 
 {% block book-box-pre %}