{% extends "pages/base.html" %}
{% load pagination_tags %}
{% load page_tags %}
{% load base_tags %}
{% 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/pages.css">
<link rel="alternate" type="application/rss+xml" title="Latest Pages" href="{% url page.feed %}" />
{% endblock %}

{% block body %}
<div class="t">
    {% page_nav request.user %}
    <h1>{% firstof MODULE_PAGES_LABEL trans 'Pages' %} {% trans "Search" %}</h1>
    
    {% page_search %}
    {% autopaginate pages 10 %}

    <div class="pages-wrap">
    {% for page in pages %} 
        {% search_result page %}
    {% empty %}
    {% endfor %}
    </div>

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

