{% extends "cranefly/layout.html" %} {% import "forms.html" as form_theme with context %} {% import "cranefly/macros.html" as macros with context %} {% block title %}{% if in_search -%} {{ macros.page_title(title=_('Search Users'), parent=_('Users List')) }} {% elif active_rank %} {{ macros.page_title(title=_(active_rank.name), parent=_('Users List')) }} {%- else -%} {{ macros.page_title(title=_('Users List')) }} {%- endif %}{% endblock %} {% block container %}
{% if in_search %}

{% trans %}Search Users{% endtrans %}

{% endif %} {% if message %}
{{ macros.draw_message(message, 'alert-form') }}
{% endif %} {% if in_search and not message and users|length > 0 %}

{% trans %}We couldn't find a member with name you entered, so we present you with some other members with names similiar to one you searched for in hopes that one of them will turn out to be member you are looking for.{% endtrans %}

{% elif active_rank and active_rank.description %}
{{ active_rank.description }}
{% endif %} {% if users|length > 0 %} {% for row in users|batch(4, '') %} {% for user in row %} {% endfor %} {% endfor %}
{% if in_search %}{% trans %}Found Users{% endtrans %}{% else %}{% trans %}Users in this group{% endtrans %}{% endif %}
{% if user %} {{ user.username }} {% else %}   {% endif %}
{{ pager() }} {% elif not message %}

{%- if in_search -%} {% trans %}We couldn't find any members with specified name.{% endtrans %} {%- else -%} {% trans %}Looks like this group has no members...{% endtrans %} {%- endif -%}

{% endif %}
{% endblock %} {% macro pager() -%} {% if pagination and pagination['total'] > 1 %} {% if default_rank %} {% else %} {% endif %} {% endif %} {%- endmacro %} {# Language strings macros #} {% macro lang_find_user() -%}{% trans %}Find User...{% endtrans %}{%- endmacro %}