fix #1357, truncate domain name if it's too loooong

This commit is contained in:
Nicolas Lœuillet
2015-08-24 22:09:57 +02:00
parent 8c55a9e6c9
commit 50243f0e34
3 changed files with 10 additions and 5 deletions

View File

@ -37,7 +37,7 @@
<li><a title="{% trans %}delete{% endtrans %}" class="tool delete icon-trash icon" href="{{ path('delete_entry', { 'id': entry.id }) }}"><span>{% trans %}delete{% endtrans %}</span></a></li>
<li><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link icon-link icon"><span>{{ entry.domainName }}</span></a></li>
</ul>
<p>{{ entry.content|striptags|slice(0, 300) }}...</p>
<p>{{ entry.content|striptags|slice(0, 300) }}&hellip;</p>
</div>
{% endfor %}
{% endif %}