Skip to content

Commit

Permalink
added css classes to pagy helper navs
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Apr 13, 2018
1 parent cee02c6 commit f5782d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pagy/frontend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def pagy_nav(pagy)
end
tags << (pagy.next ? %(<span class="page next">#{link.call pagy.next, pagy_t('pagy.nav.next'.freeze), 'aria-label="next"'.freeze}</span>)
: %(<span class="page next disabled">#{pagy_t('pagy.nav.next'.freeze)}</span>))
%(<nav class="pagination" role="navigation" aria-label="pager">#{tags}</nav>)
%(<nav class="pagy-nav pagination" role="navigation" aria-label="pager">#{tags}</nav>)
end


Expand All @@ -40,7 +40,7 @@ def pagy_nav_bootstrap(pagy)
end
tags << (pagy.next ? %(<li class="page-item next">#{link.call pagy.next, pagy_t('pagy.nav.next'.freeze), 'aria-label="next"'.freeze}</li>)
: %(<li class="page-item next disabled"><a href="#" class="page-link">#{pagy_t('pagy.nav.next'.freeze)}</a></li>))
%(<nav class="pagination" role="navigation" aria-label="pager"><ul class="pagination">#{tags}</ul></nav>)
%(<nav class="pagy-nav-boostrap pagination" role="navigation" aria-label="pager"><ul class="pagination">#{tags}</ul></nav>)
end


Expand Down

0 comments on commit f5782d8

Please sign in to comment.