{% extends "group/_base.html" %} {%- block page_layout -%}no-sidebar{%- endblock %} {%- block breadcrumb_content %} {{ ui.breadcrumb(h.humanize_entity_type('group', group_type, 'breadcrumb') or _('Groups'), href=h.url_for(group_type ~ '.index')) }} {%- endblock %} {%- block content_nav -%} {%- endblock %} {%- block page_action %} {{ ui.page_action(ui.icon("plus") ~ h.humanize_entity_type('group', group_type, 'add link') or _('Add Group'), href=h.url_for(group_type ~ '.new')) if h.check_access('group_create') }} {%- endblock %} {%- block primary_content_inner %} {{ ui.heading(h.humanize_entity_type('group', group_type, 'page title') or _('Groups'), level=1) }} {%- block search_form %} {%- set sorting_options = [ {"text": _('Name Ascending'), "value": "title asc"}, {"text": _('Name Descending'), "value": "title desc"}, ] %} {{ ui.search_form(query=q, sorting_options=sorting_options, sorting=sort_by_selected, count=page.item_count) }} {%- endblock %} {%- block group_list %} {%- if page.items %} {%- call ui.util.call(ui.group_list) -%} {%- for group in page.items -%} {{ ui.group(group=group) }} {%- endfor %} {%- endcall %} {%- else %} {%- if q %}
{{ _('There was an error while searching.') }}
{%- else %}{{ _('No groups found.') }}
{%- endif %} {%- endif %} {%- endblock %} {%- block pagination %} {{ ui.pagination(page.page, page.last_page, page._url_generator) }} {%- endblock %} {%- endblock %}