okuribito_rails 0.2.1 → 0.2.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.
- checksums.yaml +4 -4
- data/README.md +1 -3
- data/app/views/okuribito_rails/kaminari/_first_page.html.erb +11 -0
- data/app/views/okuribito_rails/kaminari/_last_page.html.erb +11 -0
- data/app/views/okuribito_rails/kaminari/_next_page.html.erb +11 -0
- data/app/views/okuribito_rails/kaminari/_page.html.erb +12 -0
- data/app/views/okuribito_rails/kaminari/_paginator.html.erb +21 -0
- data/app/views/okuribito_rails/kaminari/_prev_page.html.erb +11 -0
- data/app/views/okuribito_rails/method_call_logs/index.html.erb +1 -1
- data/app/views/okuribito_rails/method_call_situations/index.html.erb +1 -1
- data/lib/okuribito_rails/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2d7e46586d311e9b1a4450dd75feb25421986f6
|
4
|
+
data.tar.gz: dcd5eea9619016b46420c5465275d4f033695b41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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>
|
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.
|
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-
|
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
|