{% load base_filters %} {% load base_tags %} {% load perm_tags %} {% has_perm user directories.change_directory directory as can_edit_directory %} {% has_perm user directories.delete_directory directory as can_delete_directory %}
{% if directory.logo %}

{% firstof directory.headline trans 'Untitled' %}

{% endif %}

{% firstof directory.headline trans "Untitled" %}

{% with directory.category_set as directory_cat %} {% endwith %}

{% if directory.summary %} {{ directory.summary|striptags|truncatewords:50|safe }} {% else %} {{ directory.body|striptags|truncatewords:50|safe }} {% endif %}