From b0febe6fbd4a38b5f2e8520622bd98f7f60cd24c Mon Sep 17 00:00:00 2001 From: Igoru Date: Mon, 16 Apr 2012 01:02:59 -0300 Subject: [PATCH] adding doc about styling --- README.rdoc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.rdoc b/README.rdoc index 2401d30..2d7774c 100644 --- a/README.rdoc +++ b/README.rdoc @@ -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. @@ -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/]