Files
docuseal/app/views/shared/_pagination.html.erb
T

28 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-04-15 17:53:55 +03:00
<% link = pagy_anchor(@pagy) %>
<% if @pagy.pages > 1 %>
2023-06-28 00:22:34 +03:00
<div class="flex my-6 justify-center md:justify-between">
<div class="hidden md:block text-sm">
2023-09-22 02:20:38 +03:00
<%= @pagy.from %>-<%= local_assigns.fetch(:to, @pagy.to) %> of <%= local_assigns.fetch(:count, @pagy.count) %> <%= local_assigns[:items_name] || 'items' %>
2023-09-15 00:42:51 +03:00
<%= local_assigns[:left_additional_html] %>
2023-06-28 00:22:34 +03:00
</div>
2025-04-22 16:32:09 +03:00
<div class="flex items-center space-x-1.5">
2025-01-31 23:29:01 +02:00
<%= local_assigns[:right_additional_html] %>
<div class="join">
<% if @pagy.prev %>
<%== link.call(@pagy.prev, '«', classes: 'join-item btn min-h-full h-10') %>
<% else %>
<span class="join-item btn btn-disabled !bg-base-200 min-h-full h-10">«</span>
<% end %>
2025-04-22 16:32:09 +03:00
<span class="join-item btn font-medium uppercase min-h-full h-10">
2025-01-31 23:29:01 +02:00
<%= t('page_number', number: @pagy.page) %>
</span>
<% if @pagy.next %>
<%== link.call(@pagy.next, '»', classes: 'join-item btn min-h-full h-10') %>
<% else %>
<span class="join-item btn btn-disabled !bg-base-200 min-h-full h-10">»</span>
<% end %>
</div>
</div>
</div>
<% end %>