From: Radek Czajka <rczajka@rczajka.pl>
Date: Fri, 13 Dec 2019 12:59:51 +0000 (+0100)
Subject: fix
X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/527c7d2a69707ac4266a9ba9ba48bdeabf63e8fd?ds=inline

fix
---

diff --git a/src/catalogue/templates/catalogue/book_text.html b/src/catalogue/templates/catalogue/book_text.html
index c08f76cff..9f349bc23 100644
--- a/src/catalogue/templates/catalogue/book_text.html
+++ b/src/catalogue/templates/catalogue/book_text.html
@@ -117,9 +117,9 @@
 
     {% 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 %}{% if text.background_color %}{{ text.background_color }}{% endif %}" data-paragraphs="{{ insert.paragraphs }}">
+        <div class="dynamic-insert{% if text.image %} with-image{% endif %}" style="{% if text.text_color %}color: {{ text.text_color }};{% endif %}" data-paragraphs="{{ insert.paragraphs }}">
           <a href="{% url 'club' %}">
-            <div class="text">
+            <div class="text" style="{% if text.background_color %}background-color:{{ text.background_color }}{% endif %}">
               {{ text.text }}
             </div>
             {% if text.image %}