denki 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/kaminari/daisyui/_first_page.html.erb +16 -0
- data/app/views/kaminari/daisyui/_gap.html.erb +12 -0
- data/app/views/kaminari/daisyui/_last_page.html.erb +16 -0
- data/app/views/kaminari/daisyui/_next_page.html.erb +17 -0
- data/app/views/kaminari/daisyui/_page.html.erb +17 -0
- data/app/views/kaminari/daisyui/_paginator.html.erb +27 -0
- data/app/views/kaminari/daisyui/_prev_page.html.erb +18 -0
- metadata +11 -60
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7a70f99fe7a0821174c75e4cfb52c41069c32ab30ff1ae265c40d1e9e250dc9
|
4
|
+
data.tar.gz: aaa513c46ab1f73fb414b3b5be216b19a16f5f6f9466d95efce4d92483306084
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a5676062f86f7e092c0944bca761f965e7bf5684f73528b91a17762a3bcb9f27144c8da0dcecb4efbf52d5e6bbe2a5b2e3dbba94d431df325c3aba7b7910511
|
7
|
+
data.tar.gz: 64161b5c62a9f8b602a1f783bc46f4b9bc9e2b249b9efe7fcb45986865db62eab09b1c4ce5623470b405ef441a289c80195ba7c9d573e27d2a92cec1bc575c99
|
@@ -0,0 +1,16 @@
|
|
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
|
+
num_pages: total number of pages
|
6
|
+
per_page: number of items to fetch per page
|
7
|
+
remote: data-remote
|
8
|
+
-%>
|
9
|
+
<% unless current_page.first? %>
|
10
|
+
<li class="join-item btn btn-sm btn-outline">
|
11
|
+
<%= link_to_unless current_page.first?,
|
12
|
+
raw(t 'views.pagination.first'),
|
13
|
+
url,
|
14
|
+
:remote => remote %>
|
15
|
+
</li>
|
16
|
+
<% end %>
|
@@ -0,0 +1,12 @@
|
|
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
|
+
-%>
|
8
|
+
<li class="join-item btn btn-sm btn-outline btn-disabled">
|
9
|
+
<a href="#" onclick="return false;">
|
10
|
+
<%= raw(t 'views.pagination.truncate') %>
|
11
|
+
</a>
|
12
|
+
</li>
|
@@ -0,0 +1,16 @@
|
|
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
|
+
num_pages: total number of pages
|
6
|
+
per_page: number of items to fetch per page
|
7
|
+
remote: data-remote
|
8
|
+
-%>
|
9
|
+
<% unless current_page.last? %>
|
10
|
+
<li class="join-item btn btn-sm btn-outline">
|
11
|
+
<%= link_to_unless current_page.last?,
|
12
|
+
raw(t 'views.pagination.last'),
|
13
|
+
url,
|
14
|
+
:remote => remote %>
|
15
|
+
</li>
|
16
|
+
<% end %>
|
@@ -0,0 +1,17 @@
|
|
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
|
+
-%>
|
9
|
+
<% unless current_page.last? %>
|
10
|
+
<li class="join-item btn btn-sm btn-outline">
|
11
|
+
<%= link_to_unless current_page.last?,
|
12
|
+
raw(t 'views.pagination.next'),
|
13
|
+
url,
|
14
|
+
:rel => 'next',
|
15
|
+
:remote => remote %>
|
16
|
+
</li>
|
17
|
+
<% end %>
|
@@ -0,0 +1,17 @@
|
|
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
|
+
-%>
|
10
|
+
<li class="join-item btn btn-sm btn-outline<%= ' btn-active' if page.current? %>">
|
11
|
+
<%= link_to page,
|
12
|
+
url,
|
13
|
+
opts = {
|
14
|
+
:remote => remote,
|
15
|
+
:rel => page.next? ? 'next' : page.prev? ? 'prev' : nil
|
16
|
+
} %>
|
17
|
+
</li>
|
@@ -0,0 +1,27 @@
|
|
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
|
+
-%>
|
9
|
+
<%- pagination_class ||= '' %>
|
10
|
+
<%- nav_class ||= '' %>
|
11
|
+
<%= paginator.render do -%>
|
12
|
+
<nav class="<%= nav_class %>">
|
13
|
+
<ul class="pagination <%= pagination_class %>">
|
14
|
+
<%= first_page_tag unless current_page.first? %>
|
15
|
+
<%= prev_page_tag unless current_page.first? %>
|
16
|
+
<% each_page do |page| -%>
|
17
|
+
<% if page.left_outer? || page.right_outer? || page.inside_window? -%>
|
18
|
+
<%= page_tag page %>
|
19
|
+
<% elsif !page.was_truncated? -%>
|
20
|
+
<%= gap_tag %>
|
21
|
+
<% end -%>
|
22
|
+
<% end -%>
|
23
|
+
<%= next_page_tag unless current_page.last? %>
|
24
|
+
<%= last_page_tag unless current_page.last? %>
|
25
|
+
</ul>
|
26
|
+
</nav>
|
27
|
+
<% end -%>
|
@@ -0,0 +1,18 @@
|
|
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
|
+
-%>
|
9
|
+
<% unless current_page.first? %>
|
10
|
+
<li class="join-item btn btn-sm btn-outline">
|
11
|
+
<%= link_to_unless current_page.first?,
|
12
|
+
raw(t 'views.pagination.previous'),
|
13
|
+
url,
|
14
|
+
:rel => 'prev',
|
15
|
+
:remote => remote,
|
16
|
+
:class => 'page-link' %>
|
17
|
+
</li>
|
18
|
+
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: denki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Walmir Neto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kaminari
|
@@ -52,62 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.1'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rubocop
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop-performance
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rubocop-rake
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: sqlite3
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
55
|
description:
|
112
56
|
email:
|
113
57
|
- owalmirneto@gmail.com
|
@@ -125,6 +69,13 @@ files:
|
|
125
69
|
- app/views/kaminari/bs5/_page.html.erb
|
126
70
|
- app/views/kaminari/bs5/_paginator.html.erb
|
127
71
|
- app/views/kaminari/bs5/_prev_page.html.erb
|
72
|
+
- app/views/kaminari/daisyui/_first_page.html.erb
|
73
|
+
- app/views/kaminari/daisyui/_gap.html.erb
|
74
|
+
- app/views/kaminari/daisyui/_last_page.html.erb
|
75
|
+
- app/views/kaminari/daisyui/_next_page.html.erb
|
76
|
+
- app/views/kaminari/daisyui/_page.html.erb
|
77
|
+
- app/views/kaminari/daisyui/_paginator.html.erb
|
78
|
+
- app/views/kaminari/daisyui/_prev_page.html.erb
|
128
79
|
- config/locales/denki.yml
|
129
80
|
- lib/denki.rb
|
130
81
|
homepage: http://github.com/owalmirneto/denki
|
@@ -146,8 +97,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
97
|
- !ruby/object:Gem::Version
|
147
98
|
version: '0'
|
148
99
|
requirements: []
|
149
|
-
rubygems_version: 3.4.
|
100
|
+
rubygems_version: 3.4.21
|
150
101
|
signing_key:
|
151
102
|
specification_version: 4
|
152
|
-
summary:
|
103
|
+
summary: Denki is a Bootstrap 5 and DaisyUI compatible styles for Kaminari
|
153
104
|
test_files: []
|