mirror of
https://github.com/docusealco/docuseal.git
synced 2026-08-07 07:14:43 +00:00
adjust pagination
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
<% if pagy.pages > 1 %>
|
||||
<% left_additional_html = local_assigns[:left_additional_html] %>
|
||||
<div class="flex my-6 items-center <%= left_additional_html.present? ? 'justify-between' : 'justify-center md:justify-between' %>">
|
||||
<div class="text-sm <%= 'hidden md:block' if left_additional_html.blank? %>">
|
||||
<div class="flex my-6 items-center justify-between">
|
||||
<div class="text-sm">
|
||||
<% if pagy.count.nil? %>
|
||||
<%= t("pagination.#{local_assigns.fetch(:items_name, 'items')}.range_without_total", from: local_assigns.fetch(:from, pagy.from), to: local_assigns.fetch(:to, pagy.to)) %>
|
||||
<% else %>
|
||||
<%= t("pagination.#{local_assigns.fetch(:items_name, 'items')}.range_with_total", from: local_assigns.fetch(:from, pagy.from), to: local_assigns.fetch(:to, pagy.to), count: local_assigns.fetch(:count, pagy.count)) %>
|
||||
<% end %>
|
||||
<%= left_additional_html %>
|
||||
<%= local_assigns[:left_additional_html] %>
|
||||
</div>
|
||||
<div class="flex items-center space-x-1.5">
|
||||
<%= local_assigns[:right_additional_html] %>
|
||||
|
||||
Reference in New Issue
Block a user