templus_models 2.0.7 → 2.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/crud/_record.html.erb +6 -2
- data/lib/templus_models/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1676aaa61958cdb536366ee3608d1cf0d9771288
|
4
|
+
data.tar.gz: 4a33e15646197c32f54067eaa48c39dfbf463bdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9565970acc7b83e8adfcd7822194ffd9a83d948ac9348ab34370642924fb92c639cac0cc6d09cf273eb6015ec96eafb644275bca3561e7f24e7377faf34b6ad8
|
7
|
+
data.tar.gz: 44a4d3804c73423d0f7d462265f739075bbf31005ab473bb9d5dd0711570ed0cfe4e2f897271acba33bb4c328f428b8af7defa497b98a47feb1b4cdf169bfcd5
|
@@ -84,14 +84,18 @@
|
|
84
84
|
<% link_class = 'btn btn-success btn-xs' %>
|
85
85
|
<% end %>
|
86
86
|
|
87
|
-
<% if options[:wiselink]
|
87
|
+
<% if options[:wiselink] %>
|
88
88
|
<%= link_to t(name), url, class: link_class, data: { push: 'partial', target: '#form' } %>
|
89
89
|
<% else %>
|
90
90
|
<%= link_to t(name), url, class: link_class %>
|
91
91
|
<% end %>
|
92
92
|
|
93
93
|
<% elsif options[:associacao].present? %>
|
94
|
-
|
94
|
+
<% if options[:wiselink] %>
|
95
|
+
<%= link_to I18n.t(name), crud_associacao_models_path(model: @model.name.underscore, id: record.id, associacao: options[:associacao].to_s), class: "btn btn-success btn-xs", data: {push: true, crumb: "wielka"} %>
|
96
|
+
<% else %>
|
97
|
+
<%= link_to I18n.t(name), crud_associacao_models_path(model: @model.name.underscore, id: record.id, associacao: options[:associacao].to_s), class: "btn btn-success btn-xs" %>
|
98
|
+
<% end %>
|
95
99
|
<% elsif options[:partial].present? %>
|
96
100
|
<%= render options[:partial], record: record %>
|
97
101
|
<% end %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: templus_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Sol
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-06-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|