{# # --------------------------------------------------------------------- # # GLPI - Gestionnaire Libre de Parc Informatique # # http://glpi-project.org # # @copyright 2015-2023 Teclib' and contributors. # @copyright 2003-2014 by the INDEPNET Development Team. # @licence https://www.gnu.org/licenses/gpl-3.0.html # # --------------------------------------------------------------------- # # LICENSE # # This file is part of GLPI. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # --------------------------------------------------------------------- #} {% if additional_params is not defined %} {% set additional_params = "" %} {% else %} {% if additional_params|length > 0 and not (additional_params starts with '&') %} {% set additional_params = "&" ~ additional_params %} {% endif %} {% endif %} {% set href = href ~ "&start=%start%" ~ additional_params %} {% if is_tab is defined and is_tab == true %} {% set href = "javascript:reloadTab('start=%start%" ~ additional_params ~ "');" %} {% endif %} {% if limit is not defined %} {% set limit = user_pref('list_limit') %} {% endif %} {% set forward = start + limit %} {% set end = count - limit %} {% set current_start = start + 1 %} {% set current_end = current_start + limit - 1 %} {% if current_end > count %} {% set current_end = count %} {% endif %} {% set back = start - limit %} {% if current_start - list_limit <= 0 %} {% set back = 0 %} {% endif %} {% set nb_pages = (count / limit)|round(0, 'ceil') %} {% set current_page = ((current_start - 1) / limit)|round(0, 'ceil') + 1 %} {# limit the number of adjacents links displayed #} {% set adjacents = 2 %} {% set skip_adjacents = false %}
{% set limitdropdown = include('components/dropdown/limit.html.twig', { 'no_onchange': fluid_search|default(false), 'select_class': 'search-limit-dropdown', }) %} {{ __('%s rows / page')|format(limitdropdown)|raw }} {{ limitdropdown|raw }}

{{ __('Showing %s to %s of %s rows')|format(current_start, current_end, count) }}

{{ __('%s-%s/%s')|format(current_start, current_end, count) }}