okuribito_rails 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 968342a0bfd5e8d3cb43dfcfc4ff411b19030c53
4
- data.tar.gz: 386b480e26de49caaa8559e573a2f6962082315a
3
+ metadata.gz: b2d7e46586d311e9b1a4450dd75feb25421986f6
4
+ data.tar.gz: dcd5eea9619016b46420c5465275d4f033695b41
5
5
  SHA512:
6
- metadata.gz: 6d8d4382cc781cddd0603df0a5228925ca91c35eb418d7ee2c41988d6d72681f05814792b0fc9bed066cf2955c8a05f90fceb4535199942767ffdc2711ea6678
7
- data.tar.gz: 63e3e0236f549db1eb60299f9178ed632bf97c68294f417d2d6ffcac39cbcc645b7b9512d697b7b35589f15e2069ff515d0dd4d89c5b57071a898287386325ea
6
+ metadata.gz: 2e2e90bd648bc61d0f94586576770df8a5a6f78fddd2800ea396f1992050744b6d6f931a100ad05492aea968f13c49da1a66e09e442ebacba929f07681131203
7
+ data.tar.gz: 97e4c5a95fad8d200764649071a904ad0a1a7a44fa5aed166f646812cd91aa8a53d7df9ea53e6092f3b021fafe228d71e20e553d93aba6a1eec8603a9e1ed192
data/README.md CHANGED
@@ -39,9 +39,7 @@ https://github.com/muramurasan/okuribito_rails/wiki
39
39
 
40
40
  # Caution!
41
41
 
42
- OkuribitoRails does not support namespaces.
43
-
44
- We already scheduled the feature, please wait.
42
+ Sorry, OkuribitoRails does not support helper method monitoring.
45
43
 
46
44
  # License
47
45
 
@@ -0,0 +1,11 @@
1
+ <%# Link to the "First" page
2
+ - available local variables
3
+ url: url to the first page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="first">
10
+ <%= link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, :remote => remote %>
11
+ </span>
@@ -0,0 +1,11 @@
1
+ <%# Link to the "Last" page
2
+ - available local variables
3
+ url: url to the last page
4
+ current_page: a page object for the currently displayed page
5
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="last">
10
+ <%= link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, :remote => remote %>
11
+ </span>
@@ -0,0 +1,11 @@
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
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="next">
10
+ <%= link_to_unless current_page.last?, t('views.pagination.next').html_safe, url, :rel => 'next', :remote => remote %>
11
+ </span>
@@ -0,0 +1,12 @@
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
+ total_pages: total number of pages
7
+ per_page: number of items to fetch per page
8
+ remote: data-remote
9
+ -%>
10
+ <span class="page<%= ' current' if page.current? %>">
11
+ <%= link_to_unless page.current?, page, url, {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
12
+ </span>
@@ -0,0 +1,21 @@
1
+ <%# The container tag
2
+ - available local variables
3
+ current_page: a page object for the currently displayed page
4
+ total_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
+ -%>
9
+ <%= paginator.render do -%>
10
+ <nav class="pagination">
11
+ <%= first_page_tag unless current_page.first? %>
12
+ <%= prev_page_tag unless current_page.first? %>
13
+ <% each_page do |page| -%>
14
+ <% if page.left_outer? || page.right_outer? || page.inside_window? -%>
15
+ <%= page_tag page %>
16
+ <% end -%>
17
+ <% end -%>
18
+ <%= next_page_tag unless current_page.last? %>
19
+ <%= last_page_tag unless current_page.last? %>
20
+ </nav>
21
+ <% end -%>
@@ -0,0 +1,11 @@
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
+ total_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="prev">
10
+ <%= link_to_unless current_page.first?, t('views.pagination.previous').html_safe, url, :rel => 'prev', :remote => remote %>
11
+ </span>
@@ -39,4 +39,4 @@
39
39
  </tbody>
40
40
  </table>
41
41
 
42
- <%= paginate @method_call_logs %>
42
+ <%= paginate @method_call_logs, views_prefix: 'okuribito_rails' %>
@@ -51,6 +51,6 @@
51
51
  </tbody>
52
52
  </table>
53
53
 
54
- <%= paginate @method_call_situations %>
54
+ <%= paginate @method_call_situations, views_prefix: 'okuribito_rails' %>
55
55
 
56
56
 
@@ -1,3 +1,3 @@
1
1
  module OkuribitoRails
2
- VERSION = "0.2.1".freeze
2
+ VERSION = "0.2.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: okuribito_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhiro Matsumura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-19 00:00:00.000000000 Z
11
+ date: 2017-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: okuribito
@@ -208,6 +208,12 @@ files:
208
208
  - app/models/okuribito_rails/method_call_situation.rb
209
209
  - app/views/layouts/okuribito_rails/_header.html.erb
210
210
  - app/views/layouts/okuribito_rails/application.html.erb
211
+ - app/views/okuribito_rails/kaminari/_first_page.html.erb
212
+ - app/views/okuribito_rails/kaminari/_last_page.html.erb
213
+ - app/views/okuribito_rails/kaminari/_next_page.html.erb
214
+ - app/views/okuribito_rails/kaminari/_page.html.erb
215
+ - app/views/okuribito_rails/kaminari/_paginator.html.erb
216
+ - app/views/okuribito_rails/kaminari/_prev_page.html.erb
211
217
  - app/views/okuribito_rails/method_call_logs/index.html.erb
212
218
  - app/views/okuribito_rails/method_call_situations/index.html.erb
213
219
  - config/routes.rb