{% load news_tags %}
{% load category_tags %}
{% load base_tags %}
{% load base_filters %}
{% load perm_tags %}
{% load i18n %}

<div class="wrap-search-item">
    <div class="search-item news-search-item">
        <h2><a href="{{ news.get_absolute_url }}">{{ news.headline }}</a></h2>
        <div class="item-content">
            {% if news.summary %}
                {{ news.summary|striptags|truncatewords:20|safe }}
            {% else %}
                {{ news.body|striptags|truncatewords:20|safe }}
            {% endif %}
        </div>
    </div>
    
    {% include 'news/meta.html' %}
    <!-- delete-news form -->
    <form name="news-delete" method="POST" action="{% url news.delete news.pk %}">{% csrf_token %}
        <input type="hidden" name="action" value="delete">
    </form>
</div>
