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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf74bcbc672934c1f6c18c0d8622c681ebd06911
4
- data.tar.gz: 63c43c5d92fcda0d029b9d1f354caf3e208878aa
3
+ metadata.gz: 1676aaa61958cdb536366ee3608d1cf0d9771288
4
+ data.tar.gz: 4a33e15646197c32f54067eaa48c39dfbf463bdf
5
5
  SHA512:
6
- metadata.gz: 0e21f038652963e54036f7cbebc83b28fac2aa8d37383e5bf7ab3970f12ee96b31a812a4a4717990803b8b36f31b27293f638a14b41c77ad269ccbee4f316882
7
- data.tar.gz: fa6f5dcd2ac7d61e5d55f3a8ae0c0e6306e00e426774e70bb1c635839e7d19c769404d0dc0c96e1d6bcf1623c4bc3ff312f6cf5cd5437f3fc13cca49c937d198
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].present? && 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
- <%= link_to 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: "partial", target: "#form"} %>
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 %>
@@ -1,3 +1,3 @@
1
1
  module TemplusModels
2
- VERSION = "2.0.7"
2
+ VERSION = "2.0.8"
3
3
  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.7
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-04-12 00:00:00.000000000 Z
13
+ date: 2017-06-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails