{# Copyright 2020 Karlsruhe Institute of Technology # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #} {% extends "groups/base.html" %} {% block content %} {% include "snippets/resources/search/form.html" %}
{% if has_permission(current_user, "create", "group", None) %} {% trans %}Create new group{% endtrans %} {% endif %}
{% trans %}Results per page{% endtrans %}: {$ perPage $}
{% trans trimmed %} Groups can be used to group several users together, allowing for easier access management. {% endtrans %}
{{ total_groups }} {{ ngettext("group", "groups", total_groups) }} {% trans %}found{% endtrans %}
{% snippet "resources/search/results", resources=groups, view_endpoint="groups.view_group", preview_image=true, preview_image_attr="image_name", preview_image_endpoint="api.preview_group_image" %} {% if total_groups > query_params.per_page%}
{% snippet "resources/search/pagination", pagination=pagination, endpoint="groups.groups", query_params=query_params %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}