{% extends "resumes/base.html" %}
{% load pagination_tags %}
{% load resume_tags %}
{% load base_tags %}
{% load base_filters %}
{% load perm_tags %}
{% load i18n %}
{% load search_tags %}

{% 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/resumes.css">
<link rel="alternate" type="application/rss+xml" title="Latest resumes" href="{% url resume.feed %}" />
{% endblock %}

{% block body %}
<div class="t">
{% resume_nav request.user %}
    <h1>{{ SITE_GLOBAL_SITEPRIMARYKEYWORDS }} {% firstof MODULE_RESUMES_LABEL_PLURAL trans 'Resumes' %}</h1>  

    {% autopaginate resumes 10 %}
    {% resume_search %}
    <span><em>{{ paginator.count }} {% firstof MODULE_RESUMES_LABEL_PLURAL trans 'Resumes' %} {% trans "Found" %}</em></span>
    
    <div class="resumes-wrap">
    {% for resume in resumes %}
        {% search_result resume %}
    {% empty %}

    {% endfor %}
    </div>

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

{% block extra_body %}
    {{ block.super }}
    <script type="text/javascript" src="{{ STATIC_URL }}js/global/dropdown.js"></script>
    <script type="text/javascript">
    var iconrow = new dropdown({
        container:  'more-options-wrap',
        trigger:    'more-options-trigger',
        target:     'more-options-target'
    });
    </script>
{% endblock %}
