{% extends "user_groups/base.html" %}
{% load pagination_tags %}
{% load user_group_tags %}
{% load base_tags %}
{% load base_filters %}
{% load search_tags %}
{% load i18n %}

{% block title %}{{ block.super }}{% trans "Search" %}{% endblock %}

{% block extra_head %}
{{ block.super }}
<link rel="stylesheet" href="{{ STATIC_URL }}css/iconrow.css">
<link rel="stylesheet" href="{{ STATIC_URL }}css/usergroups.css">
{% endblock %}

{% block body %}
<div class="t">
 <div class="t-group">
 <div class="t-search">

    {% user_group_nav request.user %}
    <h1>{{ SITE_GLOBAL_SITEPRIMARYKEYWORDS }} {% firstof MODULE_USERGROUPS_LABEL_PLURAL 'User Groups' %}</h1>  

    {% autopaginate groups 10 %}
    {% group_search %}
    <span><em>{{ paginator.count }} {% firstof MODULE_USERGROUPS_LABEL_PLURAL 'User Groups' %} {% trans "Found" %}</em></span>
    
    <div class="groups-wrap">
    {% for group in groups %}
            {% search_result group %}
    {% empty %}

    {% endfor %}
    </div>

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