Skip to content

Commit

Permalink
adding doc about styling
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsantos07 committed Apr 16, 2012
1 parent 3141b84 commit b0febe6
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ or with options:
= paginate(:articles, :list, total, :current_page => page, :per_page => 12, :template => :brutal)


== Options:
== Options

The helper uses the link style of url(:controller, :action, :page => page) so that way it can be flexible for your controller schema.

Expand All @@ -31,6 +31,21 @@ per_page:: items per page (default 20)
template:: used template (brutal / classic / digg / extended / punbb)


== Customizing

You can customize the pagination style as follows:

* It uses by default classes that Padrino Admin's CSS uses - so the default style will fit your admin pages
* The pages are enclosed by a div with "pagination" class
* Prev/next links has "prev_next" class
* First/last links has "first_last" class
* The numbers are enclosed by a div with "pages" clas
* Page links are, well, links inside that "pages" div
* And the current page is a span with "current" class

Remember: not all templates have all those elements.


== Credits

* {Padrino}[http://www.padrinorb.com/]
Expand Down

0 comments on commit b0febe6

Please sign in to comment.