zutils 0.2.7 → 0.2.8
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/app/views/shared/_index.html.erb +5 -5
- data/app/views/shared/_show.html.erb +1 -1
- data/lib/zutils/version.rb +1 -1
- 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: 2d244d56656907c4b603037d1bbe6a75b2e38d22f15096aacb3b6ec1ec83012a
|
4
|
+
data.tar.gz: 57b3abd0e46f01b9c1ec1bf585a8692a5a94966950950945351af3654aefce3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbd20eb88e07a7bc2a79c1df628c4d610f367e9ec1511980fd524b11f7f7682014e2ce36e84f79f890866e355ec970aecf39725fb4fce888b1918ac373953a1b
|
7
|
+
data.tar.gz: 78f383553e38ffe2d4763c3e0b4b3c5a50aa8c5c2356430e736903740e0671225980f68e00f64f592885020752d845b3b88bbf1bd7d71c29e16684f4e5848638
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<div class='box box-<%= box_class %>'>
|
11
11
|
<div class="box-header with-border">
|
12
12
|
<h3 class="box-title">
|
13
|
-
<%= list.
|
13
|
+
<%= list.klass.model_name.human.pluralize %>
|
14
14
|
</h3>
|
15
15
|
</div>
|
16
16
|
<div class="box-body">
|
@@ -56,13 +56,13 @@
|
|
56
56
|
<% if can? :new, controller_name.singularize %>
|
57
57
|
<% if nested_resource == true %>
|
58
58
|
<% if parent_resource %>
|
59
|
-
<%= link_to eval("new_#{parent_resource.class.model_name.singular}_#{list.
|
60
|
-
<%= t('.new', default: t("helpers.links.new")) %> <%= list.
|
59
|
+
<%= link_to eval("new_#{parent_resource.class.model_name.singular}_#{list.klass.model_name.singular}_path(#{parent_resource.id})"), class: "btn btn-#{box_class}" do %>
|
60
|
+
<%= t('.new', default: t("helpers.links.new")) %> <%= list.klass.model_name.human %> <i class='fa fa-plus'></i>
|
61
61
|
<% end %>
|
62
62
|
<% end %>
|
63
63
|
<% else %>
|
64
|
-
<%= link_to eval("new_#{list.
|
65
|
-
<%= t('.new', default: t("helpers.links.new")) %> <%= list.
|
64
|
+
<%= link_to eval("new_#{list.klass.model_name.singular}_path"), class: "btn btn-#{box_class}" do %>
|
65
|
+
<%= t('.new', default: t("helpers.links.new")) %> <%= list.klass.model_name.human %> <i class='fa fa-plus'></i>
|
66
66
|
<% end %>
|
67
67
|
<% end %>
|
68
68
|
<% end %>
|
@@ -16,7 +16,7 @@
|
|
16
16
|
<i class="fa fa-plus"></i> Cadastrar
|
17
17
|
<% end %>
|
18
18
|
<% else %>
|
19
|
-
<%= link_to
|
19
|
+
<%= link_to eval("new_#{object.class.model_name.singular}_path"), class: "btn btn-#{box_class} btn-xs", data: { toggle: 'tooltip', placement: 'top', title: 'Cadastrar' } do %>
|
20
20
|
<i class="fa fa-plus"></i> Cadastrar
|
21
21
|
<% end %>
|
22
22
|
<% end %>
|
data/lib/zutils/version.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.8
|
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-02-
|
11
|
+
date: 2019-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|