remove the banner
[wolnelektury.git] / src / catalogue / templates / catalogue / preview_ad.html
index 33ea773..5cfbb12 100644 (file)
@@ -1,13 +1,26 @@
+{% load i18n %}
 {% if book %}
-  <p>
-    <strong>Prapremiera!</strong>
-    Dziękujemy za wsparcie – przeczytaj w prezencie już dzisiaj!
-  </p>
+  <div class="l-navigation__menu__book__header">
+    {% if accessible %}
+      <p class='korona'>
+        <strong>{% trans "Prapremiera!" %}</strong>
+        {% trans "Dziękujemy za wsparcie – przeczytaj w prezencie już dzisiaj!" %}
+      </p>
+    {% else %}
+      <p>
+        <strong>{% trans "Prapremiera!" %}</strong>
+        {% trans "Dorzuć się, aby przeczytać." %}
+      </p>
+      <a class="button" href="{% url 'club_join' %}?pk_campaign=menu-preview">{% trans "Dorzuć się" %}</a>
+    {% endif %}
+  </div>
   <div class="l-navigation__menu__book__info">
-    <a href="{{ book.get_absolute_url }}" tabindex="-1">
-      <img src="{{ book.cover_clean.url }}" alt="{{ book.pretty_title }}">
-    </a>
     <h3>
+      {% if book.cover_clean %}
+        <a href="{{ book.get_absolute_url }}" tabindex="-1">
+          <img src="{{ book.cover_clean.url }}" alt="{{ book.pretty_title }}">
+        </a>
+      {% endif %}
       <a href="{{ book.get_absolute_url }}" tabindex="-1">
         {% for author in book.authors %}
           {{ author }}