]> git.0d.be Git - panikweb.git/commitdiff
force a size limit to text included in week view
authorFrédéric Péters <fpeters@0d.be>
Tue, 30 Nov 2021 09:41:49 +0000 (10:41 +0100)
committerFrédéric Péters <fpeters@0d.be>
Tue, 30 Nov 2021 09:41:49 +0000 (10:41 +0100)
panikweb/templates/episodes/resume.html

index 61183964d811643fc24ce7d2ee25f16adfddb54d..34a140c2c140563accbdcbbca60476f15728abe1 100644 (file)
@@ -76,7 +76,7 @@
                        {% if episode.subtitle %}
                                {{ episode.subtitle|truncatewords:20}}
                        {% elif episode.text %}
-                               {{ episode.text|safe|striptags|truncatewords:20}}
+                               {{ episode.text|safe|striptags|truncatechars:250|truncatewords:20}}
                        {% endif %}
                        </a>
                        </div>
@@ -87,7 +87,7 @@
                        </article>
                        {% elif episode.text %}
                        <article class="text userContent">
-                               {{ episode.text|safe|truncatewords:50}}
+                               {{ episode.text|safe|truncatechars:500|truncatewords:50}}
                        </article>
                        {% endif %}
                {% endif %}