fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
527c7d2
)
fix
author
Radek Czajka
<rczajka@rczajka.pl>
Fri, 13 Dec 2019 13:13:17 +0000
(14:13 +0100)
committer
Radek Czajka
<rczajka@rczajka.pl>
Fri, 13 Dec 2019 13:13:17 +0000
(14:13 +0100)
src/catalogue/templates/catalogue/book_text.html
patch
|
blob
|
history
diff --git
a/src/catalogue/templates/catalogue/book_text.html
b/src/catalogue/templates/catalogue/book_text.html
index
9f349bc
..
3953e6a
100644
(file)
--- a/
src/catalogue/templates/catalogue/book_text.html
+++ b/
src/catalogue/templates/catalogue/book_text.html
@@
-117,10
+117,10
@@
{% for insert in inserts %}
{% with text=insert.choose %}
{% for insert in inserts %}
{% with text=insert.choose %}
- <div class="dynamic-insert{% if text.image %} with-image{% endif %}" style="{% if text.
text_color %}color: {{ text.text
_color }};{% endif %}" data-paragraphs="{{ insert.paragraphs }}">
+ <div class="dynamic-insert{% if text.image %} with-image{% endif %}" style="{% if text.
background_color %}background-color: {{ text.background
_color }};{% endif %}" data-paragraphs="{{ insert.paragraphs }}">
<a href="{% url 'club' %}">
<a href="{% url 'club' %}">
- <div class="text" style="{% if text.
background_color %}background-color:{{ text.background
_color }}{% endif %}">
- {{ text.text }}
+ <div class="text" style="{% if text.
text_color %}color:{{ text.text
_color }}{% endif %}">
+ {{ text.text
|safe|linebreaks
}}
</div>
{% if text.image %}
<img src="{% thumbnail text.image '120x120' as thumb %}{{ thumb.url }}{% empty %}{{ text.image.url }}{% endthumbnail %}">
</div>
{% if text.image %}
<img src="{% thumbnail text.image '120x120' as thumb %}{{ thumb.url }}{% empty %}{{ text.image.url }}{% endthumbnail %}">