diff options
Diffstat (limited to 'vendor/plugins/will_paginate/examples/index.haml')
| -rw-r--r-- | vendor/plugins/will_paginate/examples/index.haml | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/vendor/plugins/will_paginate/examples/index.haml b/vendor/plugins/will_paginate/examples/index.haml deleted file mode 100644 index fb41ac8..0000000 --- a/vendor/plugins/will_paginate/examples/index.haml +++ /dev/null | |||
| @@ -1,69 +0,0 @@ | |||
| 1 | !!! | ||
| 2 | %html | ||
| 3 | %head | ||
| 4 | %title Samples of pagination styling for will_paginate | ||
| 5 | %link{ :rel => 'stylesheet', :type => 'text/css', :href => 'pagination.css' } | ||
| 6 | %style{ :type => 'text/css' } | ||
| 7 | :sass | ||
| 8 | html | ||
| 9 | :margin 0 | ||
| 10 | :padding 0 | ||
| 11 | :background #999 | ||
| 12 | :font normal 76% "Lucida Grande", Verdana, Helvetica, sans-serif | ||
| 13 | body | ||
| 14 | :margin 2em | ||
| 15 | :padding 2em | ||
| 16 | :border 2px solid gray | ||
| 17 | :background white | ||
| 18 | :color #222 | ||
| 19 | h1 | ||
| 20 | :font-size 2em | ||
| 21 | :font-weight normal | ||
| 22 | :margin 0 0 1em 0 | ||
| 23 | h2 | ||
| 24 | :font-size 1.4em | ||
| 25 | :margin 1em 0 .5em 0 | ||
| 26 | pre | ||
| 27 | :font-size 13px | ||
| 28 | :font-family Monaco, "DejaVu Sans Mono", "Bitstream Vera Mono", "Courier New", monospace | ||
| 29 | |||
| 30 | - pagination = '<span class="disabled prev_page">« Previous</span> <span class="current">1</span> <a href="./?page=2" rel="next">2</a> <a href="./?page=3">3</a> <a href="./?page=4">4</a> <a href="./?page=5">5</a> <a href="./?page=6">6</a> <a href="./?page=7">7</a> <a href="./?page=8">8</a> <a href="./?page=9">9</a> <span class="gap">…</span> <a href="./?page=29">29</a> <a href="./?page=30">30</a> <a href="./?page=2" rel="next" class="next_page">Next »</a>' | ||
| 31 | - pagination_no_page_links = '<span class="disabled prev_page">« Previous</span> <a href="./?page=2" rel="next" class="next_page">Next »</a>' | ||
| 32 | |||
| 33 | %body | ||
| 34 | %h1 Samples of pagination styling for will_paginate | ||
| 35 | %p | ||
| 36 | Find these styles in <b>"examples/pagination.css"</b> of <i>will_paginate</i> library. | ||
| 37 | There is a Sass version of it for all you sassy people. | ||
| 38 | %p | ||
| 39 | Read about good rules for pagination: | ||
| 40 | %a{ :href => 'http://kurafire.net/log/archive/2007/06/22/pagination-101' } Pagination 101 | ||
| 41 | %p | ||
| 42 | %em Warning: | ||
| 43 | page links below don't lead anywhere (so don't click on them). | ||
| 44 | |||
| 45 | %h2 Unstyled pagination <span style="font-weight:normal">(<i>ewww!</i>)</span> | ||
| 46 | %div= pagination | ||
| 47 | |||
| 48 | %h2 Digg.com | ||
| 49 | .digg_pagination= pagination | ||
| 50 | |||
| 51 | %h2 Digg-style, no page links | ||
| 52 | .digg_pagination= pagination_no_page_links | ||
| 53 | %p Code that renders this: | ||
| 54 | %pre= '<code>%s</code>' % %[<%= will_paginate @posts, :page_links => false %>].gsub('<', '<').gsub('>', '>') | ||
| 55 | |||
| 56 | %h2 Digg-style, extra content | ||
| 57 | .digg_pagination | ||
| 58 | .page_info Displaying entries <b>1 - 6</b> of <b>180</b> in total | ||
| 59 | = pagination | ||
| 60 | %p Code that renders this: | ||
| 61 | %pre= '<code>%s</code>' % %[<div class="digg_pagination">\n <div clas="page_info">\n <%= page_entries_info @posts %>\n </div>\n <%= will_paginate @posts, :container => false %>\n</div>].gsub('<', '<').gsub('>', '>') | ||
| 62 | |||
| 63 | %h2 Apple.com store | ||
| 64 | .apple_pagination= pagination | ||
| 65 | |||
| 66 | %h2 Flickr.com | ||
| 67 | .flickr_pagination | ||
| 68 | = pagination | ||
| 69 | .page_info (118 photos) | ||
