{# 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 "collections/base.html" %} {% block content %} {% include "snippets/resources/search/form.html" %}
{% if has_permission(current_user, "create", "collection", None) %} {% trans %}Create new collection{% endtrans %} {% endif %}
{% trans %}Results per page{% endtrans %}: {$ perPage $}
{% snippet "resources/search/filter", title=_("Filter by tag"), placeholder=_("No tags."), param="tag", limit_param="tag_limit", endpoint="collections.collections", values=tags, limit=25, total=total_tags, query_params=query_params %}
{% trans %}Collections represent simple, logical groupings of multiple records.{% endtrans %}
{{ total_collections }} {{ ngettext("collection", "collections", total_collections) }} {% trans %}found{% endtrans %}
{% snippet "resources/search/results", resources=collections, view_endpoint="collections.view_collection", preview_image=false %} {% if total_collections > query_params.per_page %}
{% snippet "resources/search/pagination", pagination=pagination, endpoint="collections.collections", query_params=query_params %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}