Sha256: 02981b083f5928a90f0f69b813e1a4a8bf6a5f15a2314d113d64d44d614bb37f

Contents?: true

Size: 1.14 KB

Versions: 41

Compression:

Stored size: 1.14 KB

Contents

<% link = pagy_link_proc(pagy) -%>
<%#                            -%> <ul class="uk-pagination uk-flex-center">
<% if page.prev                -%>   <li><%== link.call(pagy.prev, "<span uk-pagination-previous>#{pagy_t('pagy.nav.prev')}</span>") %></li>
<% else                        -%>   <li class="uk-disabled"><a href="#"><span uk-pagination-previous><%== pagy_t('pagy.nav.prev') %></span></a></li>
<% end                         -%>
<% pagy.series.each do |item|  -%>
<%   if    item.is_a?(Integer) -%>   <li><%== link.call(item) %></li>
<%   elsif item.is_a?(String)  -%>   <li class="uk-active"><span><%== item %></span></li>
<%   elsif item == :gap        -%>   <li class="uk-disabled"><span><%== pagy_t('pagy.nav.gap') %></span></li>
<%   end                       -%>
<% end                         -%>
<% if pagy.next                -%>   <li><%== link.call(p_next, "<span uk-pagination-next>#{pagy_t('pagy.nav.next')}</span>") %></li>
<% else                        -%>   <li class="uk-disabled"><a href="#"><span uk-pagination-next><%== pagy_t('pagy.nav.next') %></span></a></li>
<% end                         -%>
<%#                            -%> </ul>

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/pagy-4.11.0/lib/templates/uikit_nav.html.erb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/pagy-4.11.0/lib/templates/uikit_nav.html.erb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/pagy-4.11.0/lib/templates/uikit_nav.html.erb
pagy-4.11.0 lib/templates/uikit_nav.html.erb
pagy-4.10.2 lib/templates/uikit_nav.html.erb
pagy-4.10.1 lib/templates/uikit_nav.html.erb
pagy-4.10.0 lib/templates/uikit_nav.html.erb
pagy-4.9.0 lib/templates/uikit_nav.html.erb
pagy-4.8.1 lib/templates/uikit_nav.html.erb
pagy-3.14.0 lib/templates/uikit_nav.html.erb
pagy-4.8.0 lib/templates/uikit_nav.html.erb
pagy-4.7.1 lib/templates/uikit_nav.html.erb
pagy-4.7.0 lib/templates/uikit_nav.html.erb
pagy-4.6.0 lib/templates/uikit_nav.html.erb
pagy-4.5.1 lib/templates/uikit_nav.html.erb
pagy-4.5.0 lib/templates/uikit_nav.html.erb
pagy-4.4.0 lib/templates/uikit_nav.html.erb
pagy-3.13.0 lib/templates/uikit_nav.html.erb
pagy-4.3.0 lib/templates/uikit_nav.html.erb
pagy-4.2.0 lib/templates/uikit_nav.html.erb