bootstrap_kaminari 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 47480c1f9d991489a3347ba63252cafa0d459d43
4
+ data.tar.gz: 2e2e3f355899fc6fe90c9f279b49dab0f8fd740c
5
+ SHA512:
6
+ metadata.gz: 3fcf47f46ac8d596fd130620af241d53885d17cf829e412707ab7236661b6430b9bf0cb91f4b0231f3ab231d9c3fc734da23feeeb8664e28445f4344d075ef43
7
+ data.tar.gz: ece28da088309fd92582f2d32663d013929cd94ddc952816e8045b4ffdb72f1fc14363261f44f0076d97d14027c8a7ca307efa5345e279bebbbf0b190702da95
@@ -0,0 +1,11 @@
1
+ <%#
2
+ Non-link tag that stands for skipped pages...
3
+ available local variables<%#
4
+ current_page: a page object for the currently displayed page
5
+ num_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ %>
9
+ <li class="disabled">
10
+ <a href="#"><%= raw t "views.pagination.bootstrap.truncate" %></a>
11
+ </li>
@@ -0,0 +1,14 @@
1
+ <%#
2
+ Link to the "Next" page
3
+ available local variables
4
+ url: url to the next page
5
+ current_page: a page object for the currently displayed page
6
+ num_pages: total number of pages
7
+ per_page: number of items to fetch per page
8
+ remote: data-remote
9
+ %>
10
+ <% if current_page.last? %>
11
+ <li class="next disabled"><%= link_to raw(t 'views.pagination.bootstrap.next'), '#' %></li>
12
+ <% else %>
13
+ <li class="next"><%= link_to raw(t 'views.pagination.bootstrap.next'), url, :rel => 'next', :remote => remote %></li>
14
+ <% end %>
@@ -0,0 +1,14 @@
1
+ <%#
2
+ Link showing page number
3
+ available local variables
4
+ page: a page object for "this" page
5
+ url: url to this page
6
+ current_page: a page object for the currently displayed page
7
+ num_pages: total number of pages
8
+ per_page: number of items to fetch per page
9
+ remote: data-remote
10
+ %>
11
+
12
+ <li class="page<%= ' active' if page.current? %>">
13
+ <%= link_to page, page.current? ? "#" : url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
14
+ </li>
@@ -0,0 +1,24 @@
1
+ <%#
2
+ The container tag
3
+ available local variables
4
+ current_page: a page object for the currently displayed page
5
+ num_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ paginator: the paginator that renders the pagination tags inside
9
+ %>
10
+ <%= paginator.render do %>
11
+ <div class="pagination">
12
+ <ul>
13
+ <%= prev_page_tag %>
14
+ <% each_page do |page| %>
15
+ <% if page.left_outer? || page.right_outer? || page.inside_window? %>
16
+ <%= page_tag page %>
17
+ <% elsif ! page.was_truncated? %>
18
+ <%= gap_tag %>
19
+ <% end %>
20
+ <% end %>
21
+ <%= next_page_tag %>
22
+ </ul>
23
+ </div>
24
+ <% end %>
@@ -0,0 +1,18 @@
1
+ <%#
2
+ Link to the "Previous" page
3
+ available local variables
4
+ url: url to the previous page
5
+ current_page: a page object for the currently displayed page
6
+ num_pages: total number of pages
7
+ per_page: number of items to fetch per page
8
+ remote: data-remote
9
+ %>
10
+ <% if current_page.first? %>
11
+ <li class="prev disabled">
12
+ <%= link_to raw(t 'views.pagination.bootstrap.previous'), '#' %>
13
+ </li>
14
+ <% else %>
15
+ <li class="prev">
16
+ <%= link_to raw(t 'views.pagination.bootstrap.previous'), url, :rel => 'prev', :remote => remote %>
17
+ </li>
18
+ <% end %>
@@ -1,3 +1,3 @@
1
1
  module BootstrapKaminari
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,64 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_kaminari
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Daniel Leavitt
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-09-27 00:00:00.000000000 Z
11
+ date: 2013-10-31 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.1.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 3.1.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: kaminari
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: 0.12.4
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: 0.12.4
46
- - !ruby/object:Gem::Dependency
47
- name: haml
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: 3.1.0
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: 3.1.0
62
41
  description: Bootstrap theme for Kaminari .
63
42
  email:
64
43
  - daniel@hyfn.com
@@ -66,11 +45,11 @@ executables: []
66
45
  extensions: []
67
46
  extra_rdoc_files: []
68
47
  files:
69
- - app/views/kaminari/bootstrap/_gap.html.haml
70
- - app/views/kaminari/bootstrap/_next_page.html.haml
71
- - app/views/kaminari/bootstrap/_page.html.haml
72
- - app/views/kaminari/bootstrap/_paginator.html.haml
73
- - app/views/kaminari/bootstrap/_prev_page.html.haml
48
+ - app/views/kaminari/bootstrap/_gap.html.erb
49
+ - app/views/kaminari/bootstrap/_next_page.html.erb
50
+ - app/views/kaminari/bootstrap/_page.html.erb
51
+ - app/views/kaminari/bootstrap/_paginator.html.erb
52
+ - app/views/kaminari/bootstrap/_prev_page.html.erb
74
53
  - config/locales/kaminari.yml
75
54
  - lib/bootstrap_kaminari/version.rb
76
55
  - lib/bootstrap_kaminari.rb
@@ -79,27 +58,25 @@ files:
79
58
  - README.md
80
59
  homepage: https://github.com/dleavitt/bootstrap_kaminari
81
60
  licenses: []
61
+ metadata: {}
82
62
  post_install_message:
83
63
  rdoc_options: []
84
64
  require_paths:
85
65
  - lib
86
66
  required_ruby_version: !ruby/object:Gem::Requirement
87
- none: false
88
67
  requirements:
89
- - - ! '>='
68
+ - - '>='
90
69
  - !ruby/object:Gem::Version
91
70
  version: '0'
92
71
  required_rubygems_version: !ruby/object:Gem::Requirement
93
- none: false
94
72
  requirements:
95
- - - ! '>='
73
+ - - '>='
96
74
  - !ruby/object:Gem::Version
97
75
  version: '0'
98
76
  requirements: []
99
77
  rubyforge_project:
100
- rubygems_version: 1.8.24
78
+ rubygems_version: 2.0.3
101
79
  signing_key:
102
- specification_version: 3
80
+ specification_version: 4
103
81
  summary: Twitter Bootstrap pagination theme for Kaminari.
104
82
  test_files: []
105
- has_rdoc:
@@ -1,8 +0,0 @@
1
- -# Non-link tag that stands for skipped pages...
2
- -# available local variables
3
- -# current_page: a page object for the currently displayed page
4
- -# num_pages: total number of pages
5
- -# per_page: number of items to fetch per page
6
- -# remote: data-remote
7
- %li.disabled
8
- %a{:href => '#'}= raw t "views.pagination.bootstrap.truncate"
@@ -1,11 +0,0 @@
1
- -# Link to the "Next" page
2
- -# available local variables
3
- -# url: url to the next page
4
- -# current_page: a page object for the currently displayed page
5
- -# num_pages: total number of pages
6
- -# per_page: number of items to fetch per page
7
- -# remote: data-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
@@ -1,10 +0,0 @@
1
- -# Link showing page number
2
- -# available local variables
3
- -# page: a page object for "this" page
4
- -# url: url to this page
5
- -# current_page: a page object for the currently displayed page
6
- -# num_pages: total number of pages
7
- -# per_page: number of items to fetch per page
8
- -# remote: data-remote
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}
@@ -1,17 +0,0 @@
1
- -# The container tag
2
- -# available local variables
3
- -# current_page: a page object for the currently displayed page
4
- -# num_pages: total number of pages
5
- -# per_page: number of items to fetch per page
6
- -# remote: data-remote
7
- -# paginator: the paginator that renders the pagination tags inside
8
- = paginator.render do
9
- .pagination
10
- %ul
11
- = prev_page_tag
12
- - each_page do |page|
13
- - if page.left_outer? || page.right_outer? || page.inside_window?
14
- = page_tag page
15
- - elsif ! page.was_truncated?
16
- = gap_tag
17
- = next_page_tag
@@ -1,11 +0,0 @@
1
- -# Link to the "Previous" page
2
- -# available local variables
3
- -# url: url to the previous page
4
- -# current_page: a page object for the currently displayed page
5
- -# num_pages: total number of pages
6
- -# per_page: number of items to fetch per page
7
- -# remote: data-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