summaryrefslogtreecommitdiff
path: root/vendor/plugins/will_paginate/examples/index.haml
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-24 04:13:16 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-24 04:13:16 +0200
commite0a7e0fec760ba12c8067a37e10c96f1f05876e2 (patch)
treed0cf745592a46aee4d4913911fd34c7c24515220 /vendor/plugins/will_paginate/examples/index.haml
parent6424e10be5a89f175a74c71c55660412a169b8b8 (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.haml')
-rw-r--r--vendor/plugins/will_paginate/examples/index.haml69
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 fb41ac8a..00000000
--- 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">&laquo; 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">&hellip;</span> <a href="./?page=29">29</a> <a href="./?page=30">30</a> <a href="./?page=2" rel="next" class="next_page">Next &raquo;</a>'
31- pagination_no_page_links = '<span class="disabled prev_page">&laquo; Previous</span> <a href="./?page=2" rel="next" class="next_page">Next &raquo;</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('<', '&lt;').gsub('>', '&gt;')
55
56 %h2 Digg-style, extra content
57 .digg_pagination
58 .page_info Displaying entries <b>1&nbsp;-&nbsp;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('<', '&lt;').gsub('>', '&gt;')
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)