Skip to content

Commit

Permalink
Merge pull request #3 from landtax/reverted_version
Browse files Browse the repository at this point in the history
Add extra classes to pagination tag
  • Loading branch information
matenia committed Apr 12, 2013
2 parents 8bcf678 + 86f3ef8 commit 94e78d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.rdoc
Expand Up @@ -13,6 +13,11 @@ Render Pagination with a theme

= paginate @posts, :theme => 'twitter-bootstrap'

Render with specific pagination classes

= paginate @posts, :theme => 'twitter-bootstrap',
:pagination_class => "pagination-small pagination-centered"

= Credits

{Kaminari}[https://github.com/amatsuda/kaminari] - For making an awesome gem
Expand Down
4 changes: 3 additions & 1 deletion app/views/kaminari/twitter-bootstrap/_paginator.html.erb
Expand Up @@ -6,8 +6,10 @@
remote: data-remote
paginator: the paginator that renders the pagination tags inside
-%>
<% pagination_class ||= "" %>
<%= paginator.render do -%>
<div class="pagination">
<div class="pagination <%= pagination_class %>">
<ul>
<%= first_page_tag unless current_page.first? %>
<%= prev_page_tag unless current_page.first? %>
Expand Down

0 comments on commit 94e78d1

Please sign in to comment.