Sha256: b658f167c1763e5d91da9313c48e4fac42e083a1d365110f6ad4d44a6be82555

Contents?: true

Size: 1.73 KB

Versions: 111

Compression:

Stored size: 1.73 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-bulma-nav pagination is-centered" role="navigation" aria-label="pagination">
<% if pagy.prev                -%>  <%== link.call(pagy.prev, pagy_t('pagy.nav.prev'), 'class="pagination-previous" aria-label="previous page"') %>
<% else                        -%>  <a class="pagination-previous" disabled><%== pagy_t('pagy.nav.prev') %></a>
<% end                         -%>
<% if pagy.next                -%>  <%== link.call(pagy.next, pagy_t('pagy.nav.next'), 'class="pagination-next" aria-label="next page"') %>
<% else                        -%>  <a class="pagination-next" disabled><%== pagy_t('pagy.nav.next') %></a>
<% end                         -%>
<%#                            -%>  <ul class="pagination-list">
<% 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, item, %(class="pagination-link" aria-label="goto page #{item}") %></li>
<%   elsif item.is_a?(String)  -%>    <li><%== link.call item, item, %(class="pagination-link is-current" aria-label="page #{item}" aria-current="page") %></li>
<%   elsif item == :gap        -%>    <li><span class="pagination-ellipsis"><%== pagy_t('pagy.nav.gap') %></span></li>
<%   end                       -%>
<% end                         -%>
<%#                            -%>  </ul>
<%#                            -%></nav>

Version data entries

111 entries across 111 versions & 2 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/pagy-4.11.0/lib/templates/bulma_nav.html.erb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/pagy-4.11.0/lib/templates/bulma_nav.html.erb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/pagy-4.11.0/lib/templates/bulma_nav.html.erb
pagy-6.5.0 lib/templates/bulma_nav.html.erb
pagy-6.4.4 lib/templates/bulma_nav.html.erb
pagy-6.4.3 lib/templates/bulma_nav.html.erb
pagy-6.4.2 lib/templates/bulma_nav.html.erb
pagy-6.4.1 lib/templates/bulma_nav.html.erb
pagy-6.4.0 lib/templates/bulma_nav.html.erb
pagy-6.3.0 lib/templates/bulma_nav.html.erb
pagy-6.2.0 lib/templates/bulma_nav.html.erb
pagy-6.1.0 lib/templates/bulma_nav.html.erb
pagy-6.0.4 lib/templates/bulma_nav.html.erb
pagy-6.0.3 lib/templates/bulma_nav.html.erb
pagy-6.0.2 lib/templates/bulma_nav.html.erb
pagy-6.0.1 lib/templates/bulma_nav.html.erb
pagy-6.0.0 lib/templates/bulma_nav.html.erb
pagy-5.10.1 lib/templates/bulma_nav.html.erb
pagy-5.10.0 lib/templates/bulma_nav.html.erb
pagy-5.9.3 lib/templates/bulma_nav.html.erb