Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Daron
panikweb
Commits
3176dad3
Commit
3176dad3
authored
Jul 09, 2016
by
fred
Browse files
templates: truncate topik texts
parent
a38bf150
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/templates/panikombo/topik-cell.html
View file @
3176dad3
...
...
@@ -24,7 +24,11 @@
<h5>
{{cell.topik.page.title}}
</h5>
{% endif %}
<div
class=
"description"
>
{{cell.text|safe}}
{% if cell.slug == "large" %}
{{cell.text|safe}}
{% else %}
{{cell.text|safe|striptags|truncatewords:75}}
{% endif %}
</div>
</div>
</a>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment