reformat templates
[wolnelektury.git] / src / social / templates / social / cite_promo.html
index 15786cf..546e070 100755 (executable)
@@ -1,30 +1,25 @@
 {% spaceless %}
+  {% load i18n %}
 
-{% load i18n %}
-
-{% if main %}
+  {% if main %}
     <section id="big-cite"{% if cite.image %} style="background-image: url('{{ cite.image.url }}'); background-position: 50% {{ cite.image_shift|default_if_none:50 }}%;"{% endif %} >
-{% endif %}
-
-{% if cite %}
+  {% endif %}
 
-<a href="{{ cite.link }}" class="cite{% if cite.small %} cite-small{% endif %}">
-    {% if cite.vip %}
+  {% if cite %}
+    <a href="{{ cite.link }}" class="cite{% if cite.small %} cite-small{% endif %}">
+      {% if cite.vip %}
         <p class='vip mono'><span>{{ cite.vip }} {% trans "recommends" %}:</span></p>
-    {% endif %}
-    <blockquote class="cite-body">
+      {% endif %}
+      <blockquote class="cite-body">
         <span>{{ cite.text|linebreaksbr|safe }}</span>
-    </blockquote>
-    {% if cite.book %}
-    <p class="source mono"><span>{{ cite.book.pretty_title }}</span></p>
-    {% endif %}
-</a>
-
-{% endif %}
-
-
-{% if main %}
+      </blockquote>
+      {% if cite.book %}
+        <p class="source mono"><span>{{ cite.book.pretty_title }}</span></p>
+      {% endif %}
+    </a>
+  {% endif %}
+
+  {% if main %}
     </section>
-{% endif %}
-
+  {% endif %}
 {% endspaceless %}
\ No newline at end of file