bootstrap_kaminari 0.0.1 → 0.0.2
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/app/views/kaminari/bootstrap/_gap.html.haml +1 -1
- data/app/views/kaminari/bootstrap/_next_page.html.haml +4 -2
- data/app/views/kaminari/bootstrap/_page.html.haml +1 -1
- data/app/views/kaminari/bootstrap/_paginator.html.haml +3 -3
- data/app/views/kaminari/bootstrap/_prev_page.html.haml +4 -2
- data/config/locales/kaminari.yml +7 -0
- data/lib/bootstrap_kaminari.rb +6 -1
- data/lib/bootstrap_kaminari/version.rb +1 -1
- metadata +7 -7
- data/lib/bootstrap_kaminari/engine.rb +0 -6
@@ -5,5 +5,7 @@
|
|
5
5
|
-# num_pages: total number of pages
|
6
6
|
-# per_page: number of items to fetch per page
|
7
7
|
-# remote: data-remote
|
8
|
-
|
9
|
-
= link_to
|
8
|
+
- if current_page.last?
|
9
|
+
%li.next.disabled= link_to raw(t 'views.pagination.bootstrap.next'), '#'
|
10
|
+
- else
|
11
|
+
%li.next= link_to raw(t 'views.pagination.bootstrap.next'), url, :rel => 'next', :remote => remote
|
@@ -7,4 +7,4 @@
|
|
7
7
|
-# per_page: number of items to fetch per page
|
8
8
|
-# remote: data-remote
|
9
9
|
%li{:class => "page#{' active' if page.current?}"}
|
10
|
-
= link_to page, page.current? ? "#" : url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil}
|
10
|
+
= link_to page, page.current? ? "#" : url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil}
|
@@ -6,12 +6,12 @@
|
|
6
6
|
-# remote: data-remote
|
7
7
|
-# paginator: the paginator that renders the pagination tags inside
|
8
8
|
= paginator.render do
|
9
|
-
|
9
|
+
.pagination
|
10
10
|
%ul
|
11
11
|
= prev_page_tag
|
12
12
|
- each_page do |page|
|
13
13
|
- if page.left_outer? || page.right_outer? || page.inside_window?
|
14
14
|
= page_tag page
|
15
|
-
- elsif !page.was_truncated?
|
15
|
+
- elsif ! page.was_truncated?
|
16
16
|
= gap_tag
|
17
|
-
= next_page_tag
|
17
|
+
= next_page_tag
|
@@ -5,5 +5,7 @@
|
|
5
5
|
-# num_pages: total number of pages
|
6
6
|
-# per_page: number of items to fetch per page
|
7
7
|
-# remote: data-remote
|
8
|
-
|
9
|
-
= link_to
|
8
|
+
- if current_page.first?
|
9
|
+
%li.prev.disabled= link_to raw(t 'views.pagination.bootstrap.previous'), '#'
|
10
|
+
- else
|
11
|
+
%li.prev= link_to raw(t 'views.pagination.bootstrap.previous'), url, :rel => 'prev', :remote => remote
|
data/lib/bootstrap_kaminari.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap_kaminari
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-12-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &2154829180 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2154829180
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: kaminari
|
27
|
-
requirement: &
|
27
|
+
requirement: &2154828600 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 0.12.4
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2154828600
|
36
36
|
description: Bootstrap theme for Kaminari .
|
37
37
|
email:
|
38
38
|
- daniel@hyfn.com
|
@@ -45,7 +45,7 @@ files:
|
|
45
45
|
- app/views/kaminari/bootstrap/_page.html.haml
|
46
46
|
- app/views/kaminari/bootstrap/_paginator.html.haml
|
47
47
|
- app/views/kaminari/bootstrap/_prev_page.html.haml
|
48
|
-
-
|
48
|
+
- config/locales/kaminari.yml
|
49
49
|
- lib/bootstrap_kaminari/version.rb
|
50
50
|
- lib/bootstrap_kaminari.rb
|
51
51
|
- lib/tasks/bootstrap_kaminari_tasks.rake
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
73
73
|
rubyforge_project:
|
74
|
-
rubygems_version: 1.8.
|
74
|
+
rubygems_version: 1.8.10
|
75
75
|
signing_key:
|
76
76
|
specification_version: 3
|
77
77
|
summary: Twitter Bootstrap pagination theme for Kaminari.
|