Commit 34a451b8 authored by fred's avatar fred
Browse files

never truncate news titles

parent 9ea2b3c2
...@@ -17,14 +17,12 @@ ...@@ -17,14 +17,12 @@
{% endif %} {% endif %}
</div> </div>
<div class="content"> <div class="content">
<h5 class="title {% if not class %}ellipsis{% endif %}">{{ content.title }}</h5> <h5 class="title">{{ content.title }}</h5>
<div class="description {% if not class %}ellipsis{% endif %}"> {% if class == "special" %}
{% if class == "special" %} <div class="description">
{{ content.text|safe|striptags|truncatewords:75}} {{ content.text|safe|striptags|truncatewords:75}}
{% else %}
{{ content.text|safe|striptags|truncatewords:20}}
{% endif %}
</div> </div>
{% endif %}
</div> </div>
{% if content.date %} {% if content.date %}
<div class="smooth">{{ content.date|date:"d/m/Y" }}</div> <div class="smooth">{{ content.date|date:"d/m/Y" }}</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment