fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Django 1.8 and other updates.
[wolnelektury.git]
/
apps
/
social
/
templates
/
social
/
cite_promo.html
diff --git
a/apps/social/templates/social/cite_promo.html
b/apps/social/templates/social/cite_promo.html
index
5caaf1d
..
15786cf
100755
(executable)
--- a/
apps/social/templates/social/cite_promo.html
+++ b/
apps/social/templates/social/cite_promo.html
@@
-1,18
+1,30
@@
+{% spaceless %}
+
{% load i18n %}
{% load i18n %}
+{% 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 %}
{% if cite %}
-<a href="{{ cite.get_absolute_url }}" class="cite">
+
+<a href="{{ cite.link }}" class="cite{% if cite.small %} cite-small{% endif %}">
{% if cite.vip %}
{% if cite.vip %}
- <p class='vip
'>{{ cite.vip }} {% trans "recommends" %}:
</p>
+ <p class='vip
mono'><span>{{ cite.vip }} {% trans "recommends" %}:</span>
</p>
{% endif %}
<blockquote class="cite-body">
{% endif %}
<blockquote class="cite-body">
- {{ cite.text|linebreaks|safe }}
+ <span>{{ cite.text|linebreaksbr|safe }}</span>
</blockquote>
</blockquote>
- <p class="source mono">{{ cite.book.pretty_title }}</p>
-</a>
-{% else %}
- {% if fallback %}
- {% load fragment_promo from catalogue_tags %}
- {% fragment_promo ctx %}
+ {% if cite.book %}
+ <p class="source mono"><span>{{ cite.book.pretty_title }}</span></p>
{% endif %}
{% endif %}
+</a>
+
{% endif %}
{% endif %}
+
+
+{% if main %}
+ </section>
+{% endif %}
+
+{% endspaceless %}
\ No newline at end of file