mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1008 B
25 lines
1008 B
<% link = pagy_link_proc(@pagy) %>
|
|
<% if @pagy.pages > 1 %>
|
|
<div class="flex my-6 justify-center md:justify-between">
|
|
<div class="hidden md:block text-sm">
|
|
<%= @pagy.from %>-<%= local_assigns.fetch(:to, @pagy.to) %> of <%= local_assigns.fetch(:count, @pagy.count) %> <%= local_assigns[:items_name] || 'items' %>
|
|
<%= local_assigns[:left_additional_html] %>
|
|
</div>
|
|
<div class="join">
|
|
<% if @pagy.prev %>
|
|
<%== link.call(@pagy.prev, '«', 'class="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 %>
|
|
<span class="join-item btn uppercase min-h-full h-10">
|
|
Page <%= @pagy.page %>
|
|
</span>
|
|
<% if @pagy.next %>
|
|
<%== link.call(@pagy.next, '»', 'class="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>
|
|
<% end %>
|