{% load base_tags %} {% load perm_tags %} {% has_perm request.user stories.change_story story as can_edit %}

{% firstof story.title "Untitled" %}

{% if story.image %}

{{ story.title|truncatechars:123 }}

{% endif %}

{{ story.content|striptags|truncatewords:20|safe }} {% if can_edit %}

{% endif %}