bootstrap-will_paginate 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.markdown
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
|
1
|
+
## [Will Paginate][wp] link renderer styles for [Twitter Bootstrap][bs]
|
2
2
|
|
3
3
|
Rails Engine that extends [will_paginate][wp] stylings to match the pagination styling conventions
|
4
4
|
in Twitter's [Bootstrap][bs] toolkit.
|
5
5
|
|
6
6
|
The real hard work done on the renderer initializer was written by [Isaac Bowen][is].
|
7
7
|
|
8
|
-
|
8
|
+
### Installation
|
9
9
|
|
10
10
|
Add to your Gemfile:
|
11
11
|
|
12
12
|
gem 'bootstrap-will_paginate'
|
13
13
|
|
14
|
-
|
14
|
+
### Usage
|
15
15
|
|
16
16
|
Just like you would in the regular [will_paginate][wp]. If you've got a need to use the default will_paginate stylings,
|
17
17
|
pass an option like so:
|
@@ -31,7 +31,8 @@ module WillPaginate
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def previous_or_next_page(page, text, classname)
|
34
|
-
tag :li, link(text, page || '#'),
|
34
|
+
tag :li, link(text, page || '#'),
|
35
|
+
:class => [(classname[0..3] if @options[:page_links]), (classname if @options[:page_links]), ('disabled' unless page)].join(' ')
|
35
36
|
end
|
36
37
|
end
|
37
38
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-will_paginate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-03-27 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: will_paginate
|
17
|
-
requirement: &
|
17
|
+
requirement: &11449660 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *11449660
|
26
26
|
description: Hooks into will_paginate to format the html to match Twitter Bootstrap
|
27
27
|
styling. Extension code was originally written by Isaac Bowen (https://gist.github.com/1182136).
|
28
28
|
email:
|
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
61
|
version: '0'
|
62
62
|
requirements: []
|
63
63
|
rubyforge_project: bootstrap-will_paginate
|
64
|
-
rubygems_version: 1.8.
|
64
|
+
rubygems_version: 1.8.15
|
65
65
|
signing_key:
|
66
66
|
specification_version: 3
|
67
67
|
summary: Format will_paginate html to match Twitter Bootstrap styling.
|