{% extends "news/base.html" %}
{% load pagination_tags %}
{% load news_tags %}
{% load category_tags %}
{% load base_tags %}
{% load base_filters %}
{% load perm_tags %}
{% load search_tags %}
{% load i18n %}

{% block title %}{{ block.super }} Search{% endblock %}
{% block meta_description %}{{ block.super }}{% endblock %}
{% block meta_keywords %}{{ block.super }}{% endblock %}

{% block extra_head %}
{{ block.super }}
<link rel="stylesheet" href="{{ STATIC_URL }}css/news.css">
<link rel="alternate" type="application/rss+xml" title="Latest News" href="{% url news.feed %}" />
{% endblock %}

{% block body %}
<div class="t">
{% news_nav request.user %}
    <h1>{{ SITE_GLOBAL_SITEPRIMARYKEYWORDS }} {% firstof MODULE_NEWS_LABEL trans 'News' %} {% trans "Search" %}</h1>
    
    {% autopaginate search_news 10 %}
    {% news_search %}
    <span><em>{{ paginator.count }} {% firstof MODULE_NEWS_LABEL_PLURAL trans 'News' %} {% trans "Found" %}</em></span>
       
    <div class="news-wrap">
    {% for news in search_news %}
        {% search_result news %}
    {% empty %}

    {% endfor %}
    </div>

    {% paginate %}
</div>
{% endblock %}
