Sha256: 7e0b2bcf920bd90dc21561b6111074c071417562e2fab00f5c363a5fa526ed7b

Contents?: true

Size: 1.75 KB

Versions: 20

Compression:

Stored size: 1.75 KB

Contents

<%#
  This template is i18n-ready: if you don't use i18n, then you can replace the pagy_t
  calls with the actual strings ("&lsaquo; Prev", "Next &rsaquo;", "&hellip;").

  The link variable is set to a proc that returns the link tag.
  Usage: link.call( page_number [, text [, extra_attributes_string ]])
-%>
<% link = pagy_link_proc(pagy, link_extra: 'class="page-link"') -%>
<%#                            -%><nav aria-label="pager" class="pagy-bootstrap-nav d-inline-block" role="navigation">
<%#                            -%>  <ul class="pagination m-0">
<% if pagy.prev                -%>    <li class="page-item prev"><%== link.call(pagy.prev, pagy_t('pagy.nav.prev'), 'aria-label="previous"') %></li>
<% else                        -%>    <li class="page-item prev disabled"><a href="#" class="page-link"><%== pagy_t('pagy.nav.prev') %></a></li>
<% end                         -%>
<% pagy.series.each do |item| # series example: [1, :gap, 7, 8, "9", 10, 11, :gap, 36] -%>
<%   if    item.is_a?(Integer) -%>    <li class="page-item"><%== link.call(item) %></li>
<%   elsif item.is_a?(String)  -%>    <li class="page-item active"><%== link.call(item) %></li>
<%   elsif item == :gap        -%>    <li class="page-item disabled gap"><a href="#" class="page-link"><%== pagy_t('pagy.nav.gap') %></a></li>
<%   end                       -%>
<% end                         -%>
<% if pagy.next                -%>    <li class="page-item next"><%== link.call(pagy.next, pagy_t('pagy.nav.next'), 'aria-label="next"') %></li>
<% else                        -%>    <li class="page-item next disabled"><a href="#" class="page-link"><%== pagy_t('pagy.nav.next') %></a></li>
<% end                         -%>
<%#                            -%>  </ul>
<%#                            -%></nav>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
administration-zero-1.0.1 lib/generators/admin/install/templates/erb/admin/base/_pagination.html.erb
administration-zero-1.0.0 lib/generators/admin/install/templates/erb/admin/base/_pagination.html.erb
administration-zero-0.0.18 lib/generators/admin/install/templates/erb/admin/base/_pagination.html.erb
administration-zero-0.0.17 lib/generators/admin/install/templates/erb/admin/base/_pagination.html.erb
administration-zero-0.0.16 lib/generators/admin/install/templates/erb/admin/base/_pagination.html.erb
administration-zero-0.0.15 lib/generators/admin/install/templates/erb/admin/base/_pagination.html.erb
administration-zero-0.0.14 lib/generators/admin/install/templates/erb/admin/base/_pagination.html.erb
administration-zero-0.0.13 lib/generators/admin/install/templates/erb/admin/base/_pagination.html.erb
administration-zero-0.0.12 lib/generators/admin/install/templates/erb/admin/application/_pagination.html.erb
administration-zero-0.0.11 lib/generators/admin/install/templates/erb/admin/application/_pagination.html.erb
administration-zero-0.0.10 lib/generators/admin/install/templates/erb/admin/application/_pagination.html.erb
administration-zero-0.0.9 lib/generators/admin/install/templates/erb/admin/application/_pagination.html.erb
administration-zero-0.0.8 lib/generators/admin/install/templates/erb/admin/application/_pagination.html.erb
administration-zero-0.0.7 lib/generators/admin/install/templates/erb/admin/application/_pagination.html.erb
administration-zero-0.0.6 lib/generators/admin/install/templates/erb/admin/application/_pagination.html.erb
administration-zero-0.0.5 lib/generators/admin/install/templates/erb/admin/application/_pagination.html.erb
administration-zero-0.0.4 lib/generators/admin/install/templates/erb/admin/application/_pagination.html.erb
administration-zero-0.0.3 lib/generators/admin/install/templates/erb/admin/application/_pagination.html.erb
administration-zero-0.0.2 lib/generators/admin/install/templates/erb/admin/application/_pagination.html.erb
administration-zero-0.0.1 lib/generators/admin/install/templates/erb/admin/application/_pagination.html.erb