diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-24 04:13:16 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-24 04:13:16 +0200 |
| commit | e0a7e0fec760ba12c8067a37e10c96f1f05876e2 (patch) | |
| tree | d0cf745592a46aee4d4913911fd34c7c24515220 /vendor/plugins/will_paginate/examples/index.html | |
| parent | 6424e10be5a89f175a74c71c55660412a169b8b8 (diff) | |
Stage 1 complete: Rails 2.3.5 to Rails 3.2.22.5 upgrade
- Converted plugins to gems (Gemfile)
- Updated config structure (application.rb, boot.rb, environment.rb)
- Converted routes to Rails 3 DSL
- Converted named_scope to scope throughout models
- Converted find(:all, :conditions) to where() chains
- Fixed has_many :order to use ordering scope
- Updated session store and secret token configuration
- Fixed exception_notification middleware configuration
- Patched Ruby 2.4 / Rails 3.2 incompatibilities:
- Integer/Float duration arithmetic (ActiveSupport)
- Arel visit_Integer for PostgreSQL adapter
- create_database String/Integer coercion
- ActionController consider_all_requests_local
- Migrated taggings schema for acts-as-taggable-on
- Replaced dynamic_form gem with custom form_error_messages helper
- Fixed Rails 3 block helper syntax (form_for, form_tag, fields_for)
- Fixed admin layout yield
- Updated test suite for Rails 3 APIs
Diffstat (limited to 'vendor/plugins/will_paginate/examples/index.html')
| -rw-r--r-- | vendor/plugins/will_paginate/examples/index.html | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/vendor/plugins/will_paginate/examples/index.html b/vendor/plugins/will_paginate/examples/index.html deleted file mode 100644 index 858f7c6f..00000000 --- a/vendor/plugins/will_paginate/examples/index.html +++ /dev/null | |||
| @@ -1,92 +0,0 @@ | |||
| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
| 2 | <html> | ||
| 3 | </html> | ||
| 4 | <head> | ||
| 5 | <title>Samples of pagination styling for will_paginate</title> | ||
| 6 | <link href='pagination.css' rel='stylesheet' type='text/css' /> | ||
| 7 | <style type='text/css'> | ||
| 8 | html { | ||
| 9 | margin: 0; | ||
| 10 | padding: 0; | ||
| 11 | background: #999; | ||
| 12 | font: normal 76% "Lucida Grande", Verdana, Helvetica, sans-serif; } | ||
| 13 | |||
| 14 | body { | ||
| 15 | margin: 2em; | ||
| 16 | padding: 2em; | ||
| 17 | border: 2px solid gray; | ||
| 18 | background: white; | ||
| 19 | color: #222; } | ||
| 20 | |||
| 21 | h1 { | ||
| 22 | font-size: 2em; | ||
| 23 | font-weight: normal; | ||
| 24 | margin: 0 0 1em 0; } | ||
| 25 | |||
| 26 | h2 { | ||
| 27 | font-size: 1.4em; | ||
| 28 | margin: 1em 0 .5em 0; } | ||
| 29 | |||
| 30 | pre { | ||
| 31 | font-size: 13px; | ||
| 32 | font-family: Monaco, "DejaVu Sans Mono", "Bitstream Vera Mono", "Courier New", monospace; } | ||
| 33 | </style> | ||
| 34 | </head> | ||
| 35 | <body> | ||
| 36 | <h1>Samples of pagination styling for will_paginate</h1> | ||
| 37 | <p> | ||
| 38 | Find these styles in <b>"examples/pagination.css"</b> of <i>will_paginate</i> library. | ||
| 39 | There is a Sass version of it for all you sassy people. | ||
| 40 | </p> | ||
| 41 | <p> | ||
| 42 | Read about good rules for pagination: | ||
| 43 | <a href='http://kurafire.net/log/archive/2007/06/22/pagination-101'>Pagination 101</a> | ||
| 44 | </p> | ||
| 45 | <p> | ||
| 46 | <em>Warning:</em> | ||
| 47 | page links below don't lead anywhere (so don't click on them). | ||
| 48 | </p> | ||
| 49 | <h2> | ||
| 50 | Unstyled pagination <span style="font-weight:normal">(<i>ewww!</i>)</span> | ||
| 51 | </h2> | ||
| 52 | <div> | ||
| 53 | <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> | ||
| 54 | </div> | ||
| 55 | <h2>Digg.com</h2> | ||
| 56 | <div class='digg_pagination'> | ||
| 57 | <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> | ||
| 58 | </div> | ||
| 59 | <h2>Digg-style, no page links</h2> | ||
| 60 | <div class='digg_pagination'> | ||
| 61 | <span class="disabled prev_page">« Previous</span> <a href="./?page=2" rel="next" class="next_page">Next »</a> | ||
| 62 | </div> | ||
| 63 | <p>Code that renders this:</p> | ||
| 64 | <pre> | ||
| 65 | <code><%= will_paginate @posts, :page_links => false %></code> | ||
| 66 | </pre> | ||
| 67 | <h2>Digg-style, extra content</h2> | ||
| 68 | <div class='digg_pagination'> | ||
| 69 | <div class='page_info'> | ||
| 70 | Displaying entries <b>1 - 6</b> of <b>180</b> in total | ||
| 71 | </div> | ||
| 72 | <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> | ||
| 73 | </div> | ||
| 74 | <p>Code that renders this:</p> | ||
| 75 | <pre> | ||
| 76 | <code><div class="digg_pagination"> | ||
| 77 | <div clas="page_info"> | ||
| 78 | <%= page_entries_info @posts %> | ||
| 79 | </div> | ||
| 80 | <%= will_paginate @posts, :container => false %> | ||
| 81 | </div></code> | ||
| 82 | </pre> | ||
| 83 | <h2>Apple.com store</h2> | ||
| 84 | <div class='apple_pagination'> | ||
| 85 | <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> | ||
| 86 | </div> | ||
| 87 | <h2>Flickr.com</h2> | ||
| 88 | <div class='flickr_pagination'> | ||
| 89 | <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> | ||
| 90 | <div class='page_info'>(118 photos)</div> | ||
| 91 | </div> | ||
| 92 | </body> | ||
