Sha256: 6c9d5436227c701cce0075d5cccefb00342a274c201ac0c0f2747d188bf10e17

Contents?: true

Size: 1.5 KB

Versions: 62

Compression:

Stored size: 1.5 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) -%>
<%#                            -%><nav class="pagy-foundation-nav" role="navigation" aria-label="Pagination">
<%#                            -%>  <ul class="pagination">
<% if pagy.prev                -%>    <li class="prev"><%== link.call(pagy.prev, pagy_t('pagy.nav.prev'), 'aria-label="previous"') %></li>
<% else                        -%>    <li class="prev disabled"><%== pagy_t('pagy.nav.prev') %></li>
<% end                         -%>
<% pagy.series.each do |item| # series example: [1, :gap, 7, 8, "9", 10, 11, :gap, 36] -%>
<%   if    item.is_a?(Integer) -%>    <li><%== link.call(item) %></li>
<%   elsif item.is_a?(String)  -%>    <li class="current"><%= item %></li>
<%   elsif item == :gap        -%>    <li class="ellipsis gap" aria-hidden="true"></li>
<%   end                       -%>
<% end                         -%>
<% if pagy.next                -%>    <li class="next"><%== link.call(pagy.next, pagy_t('pagy.nav.next'), 'aria-label="next"') %></li>
<% else                        -%>    <li class="next disabled"><%== pagy_t('pagy.nav.next') %></li>
<% end                         -%>
<%#                            -%>  </ul>
<%#                            -%></nav>

Version data entries

62 entries across 62 versions & 2 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/pagy-4.11.0/lib/templates/foundation_nav.html.erb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/pagy-4.11.0/lib/templates/foundation_nav.html.erb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/pagy-4.11.0/lib/templates/foundation_nav.html.erb
pagy-5.1.3 lib/templates/foundation_nav.html.erb
pagy-5.1.2 lib/templates/foundation_nav.html.erb
pagy-5.1.1 lib/templates/foundation_nav.html.erb
pagy-5.1.0 lib/templates/foundation_nav.html.erb
pagy-5.0.1 lib/templates/foundation_nav.html.erb
pagy-5.0.0 lib/templates/foundation_nav.html.erb
pagy-4.11.0 lib/templates/foundation_nav.html.erb
pagy-4.10.2 lib/templates/foundation_nav.html.erb
pagy-4.10.1 lib/templates/foundation_nav.html.erb
pagy-4.10.0 lib/templates/foundation_nav.html.erb
pagy-4.9.0 lib/templates/foundation_nav.html.erb
pagy-4.8.1 lib/templates/foundation_nav.html.erb
pagy-3.14.0 lib/templates/foundation_nav.html.erb
pagy-4.8.0 lib/templates/foundation_nav.html.erb
pagy-4.7.1 lib/templates/foundation_nav.html.erb
pagy-4.7.0 lib/templates/foundation_nav.html.erb
pagy-4.6.0 lib/templates/foundation_nav.html.erb