fix linebreaks et html

This commit is contained in:
Jean-Marie Favreau 2025-02-13 18:29:19 +01:00
parent 6ff2ff0b58
commit c2b6512895
3 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
{% block title %}{% block og_title %}{{ event.title }}{% endblock %}{% endblock %} {% block title %}{% block og_title %}{{ event.title }}{% endblock %}{% endblock %}
{% block og_image %}{% if event.has_image_url %}{{ event|get_image_uri:request }}{% else %}{{ block.super }}{% endif %}{% endblock %} {% block og_image %}{% if event.has_image_url %}{{ event|get_image_uri:request }}{% else %}{{ block.super }}{% endif %}{% endblock %}
{% block og_description %}{% if event.description %}{{ event.description |truncatewords:20|linebreaks }}{% else %}{{ block.super }}{% endif %}{% endblock %} {% block og_description %}{% if event.description %}{{ event.description |truncatewords:20 }}{% else %}{{ block.super }}{% endif %}{% endblock %}
{% block entete_header %} {% block entete_header %}
{% css_categories %} {% css_categories %}

View File

@ -97,7 +97,7 @@
<div class="description"> <div class="description">
<div class="texte"> <div class="texte">
<p>{{ event.description |linebreaks2 | truncatewords:60 }}</p> {{ event.description |linebreaks2 | truncatewords:60 }}
</div> </div>
<div class="right bottom"> <div class="right bottom">
<a role="button" href="{{ event.get_absolute_url }}">Voir l'événement {% picto_from_name "chevron-right" %} <a role="button" href="{{ event.get_absolute_url }}">Voir l'événement {% picto_from_name "chevron-right" %}

View File

@ -110,7 +110,7 @@
</article> </article>
{% endif %} {% endif %}
<p>{{ event.description |linebreaks | robust_urlize }}</p> {{ event.description |linebreaks | robust_urlize }}
</div> </div>
<footer> <footer>