bootstrap_kaminari 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,4 +5,4 @@
5
5
  -# per_page: number of items to fetch per page
6
6
  -# remote: data-remote
7
7
  %li.disabled
8
- = link_to "...", "#"
8
+ %a{:href => '#'}= raw t "views.pagination.bootstrap.truncate"
@@ -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
- %li{class: "next" + (current_page.last? ? " disabled" : "") }
9
- = link_to "Next →".html_safe, current_page.last? ? '#' : url, :rel => 'next', :remote => remote
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
- %nav.pagination
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
- %li{class: "prev" + (current_page.first? ? " disabled" : "") }
9
- = link_to "← Prev".html_safe, current_page.first? ? '#' : url, :rel => 'prev', :remote => remote
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
@@ -0,0 +1,7 @@
1
+ en:
2
+ views:
3
+ pagination:
4
+ bootstrap:
5
+ previous: "← Prev"
6
+ next: "Next →"
7
+ truncate: "..."
@@ -1,5 +1,10 @@
1
1
  module BootstrapKaminari
2
2
  module Rails
3
- require "bootstrap_kaminari/engine"
3
+ module Bootstrap
4
+ module Kaminari
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end
4
9
  end
5
10
  end
@@ -1,3 +1,3 @@
1
1
  module BootstrapKaminari
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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: &2151913900 !ruby/object:Gem::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: *2151913900
24
+ version_requirements: *2154829180
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: kaminari
27
- requirement: &2151912800 !ruby/object:Gem::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: *2151912800
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
- - lib/bootstrap_kaminari/engine.rb
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.11
74
+ rubygems_version: 1.8.10
75
75
  signing_key:
76
76
  specification_version: 3
77
77
  summary: Twitter Bootstrap pagination theme for Kaminari.
@@ -1,6 +0,0 @@
1
- module Bootstrap
2
- module Kaminari
3
- class Engine < ::Rails::Engine
4
- end
5
- end
6
- end