zutils 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/CODE_OF_CONDUCT.md +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/app/assets/javascripts/zutils.js +0 -0
- data/app/assets/stylesheets/zutils.scss +0 -0
- data/app/views/shared/_action_links.html.erb +0 -0
- data/app/views/shared/_fields.html.erb +0 -0
- data/app/views/shared/_form.html.erb +0 -0
- data/app/views/shared/_index.html.erb +0 -0
- data/app/views/shared/_list.html.erb +22 -22
- data/app/views/shared/_modal.html.erb +0 -0
- data/app/views/shared/_show.html.erb +0 -0
- data/bin/console +0 -0
- data/bin/setup +0 -0
- data/lib/zutils.rb +0 -0
- data/lib/zutils/engine.rb +0 -0
- data/lib/zutils/version.rb +1 -1
- data/zutils.gemspec +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7deae7337e3bcdc69bc5b2f3363fa3ffed5e7939b50f81e78c9c0f9235816c1e
|
4
|
+
data.tar.gz: 2aeb8c4bc7c9774bb454a78ec6a1e7ed92c937a48a01e695cba5658f56a22301
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e0c3b901a154c60b7ff95da458b71fabaaf66b61b5ce28fd0063d464c6fb6b439bac4044c40a6d007a3ff39c1313e530d87c76ba6af6487454acf6a19f9114a
|
7
|
+
data.tar.gz: eb442b3332eb67e97900eca9465b1bc564f965d43b46e4968571a3d5dca545ab4743d25f7b4fa15e455d27d2e9556d9f33d8e38dd92225ecf832f6603d89b4e0
|
data/.gitignore
CHANGED
File without changes
|
data/CODE_OF_CONDUCT.md
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -6,34 +6,33 @@
|
|
6
6
|
<% sort_fields ||= [] %>
|
7
7
|
<% sort_all ||= false %>
|
8
8
|
|
9
|
+
<% unless list.empty? %>
|
9
10
|
<table class="table table-striped datatables">
|
10
11
|
<thead>
|
11
12
|
<tr>
|
12
|
-
<%
|
13
|
-
<%
|
14
|
-
<% if
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
<% elsif /_currency$/ =~ column %>
|
20
|
-
<% else %>
|
21
|
-
<th><%= sort_link(@q, column, list.first.class.human_attribute_name(column)) %></th>
|
22
|
-
<% end %>
|
13
|
+
<% (list.first.class.column_names - exceptions - excluded_columns + additional_columns).each do |column| %>
|
14
|
+
<% if sort_all || sort_fields.include?(column) %>
|
15
|
+
<% if /_id$/ =~ column %>
|
16
|
+
<th><%= sort_link(@q, column, list.first.class.human_attribute_name(column.split("_id")[0])) %></th>
|
17
|
+
<% elsif /_cents$/ =~ column %>
|
18
|
+
<th><%= sort_link(@q, column, list.first.class.human_attribute_name(column.split("_cents")[0])) %></th>
|
19
|
+
<% elsif /_currency$/ =~ column %>
|
23
20
|
<% else %>
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
21
|
+
<th><%= sort_link(@q, column, list.first.class.human_attribute_name(column)) %></th>
|
22
|
+
<% end %>
|
23
|
+
<% else %>
|
24
|
+
<% if /_id$/ =~ column %>
|
25
|
+
<th><%= list.first.class.human_attribute_name(column.split("_id")[0]) %></th>
|
26
|
+
<% elsif /_cents$/ =~ column %>
|
27
|
+
<th><%= list.first.class.human_attribute_name(column.split("_cents")[0]) %></th>
|
28
|
+
<% elsif /_currency$/ =~ column %>
|
29
|
+
<% else %>
|
30
|
+
<th><%= list.first.class.human_attribute_name(column) %></th>
|
32
31
|
<% end %>
|
33
32
|
<% end %>
|
34
|
-
|
35
|
-
|
36
|
-
|
33
|
+
<% end %>
|
34
|
+
<% unless hide_actions %>
|
35
|
+
<th>Ações</th>
|
37
36
|
<% end %>
|
38
37
|
</tr>
|
39
38
|
</thead>
|
@@ -68,3 +67,4 @@
|
|
68
67
|
<% end %>
|
69
68
|
</tbody>
|
70
69
|
</table>
|
70
|
+
<% end %>
|
File without changes
|
File without changes
|
data/bin/console
CHANGED
File without changes
|
data/bin/setup
CHANGED
File without changes
|
data/lib/zutils.rb
CHANGED
File without changes
|
data/lib/zutils/engine.rb
CHANGED
File without changes
|
data/lib/zutils/version.rb
CHANGED
data/zutils.gemspec
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zutils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Viana
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|