five-two-nw-olivander 0.1.2.34 → 0.1.2.35

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
  SHA256:
3
- metadata.gz: e7eb221860d74c9f67cde3b6812127add1db72ce39deeee0a228430b6d8117f0
4
- data.tar.gz: cef18e827892b336bb5e4b2579687510f2144cb2ea6eb208daadf11672d0bf0e
3
+ metadata.gz: 21de4f9aa55c8f41410166a668b724d89d0f7800adef266b6c6ded9b3d52a665
4
+ data.tar.gz: d4de2dfa99389c5df48c39cd8854f9ea3cb0a855f0ea11dfdb1e0cf5f9991e7d
5
5
  SHA512:
6
- metadata.gz: 850cd3b0478207358ca202951285f6dee64d636df48b582036cc4f4944cbcf943a9ecc62e321d2402cdc4469bfbf15a3d35b3c8b14e3a02e459bd24456cd7d01
7
- data.tar.gz: 149c252bedb18b3e914985c57cd937e107a9c30bda662b377f72e6c6614fe034eb9dbbf703f6accb5098713894765e8c1ce8b302b8da8bf6d4bbac5b99eb5c24
6
+ metadata.gz: c9e38f0a1c8fd0802f26b47fa0d889e354f57baa56bfb62cd1b07b29e670112410dd23eb1b55765ecaedfbe15a50a5b1927ee67ca40826c6b57773a7d28bdf3f
7
+ data.tar.gz: 90e0d42e5a80bfc5a2dac29ac6f26e8091dc697daa3868646422b343ee5dee495455933960504e77b777e12d20ff298a2fb4cba8c6f7870a16f25b96f752eb08
@@ -1,7 +1,15 @@
1
- - actions.each do |a|
2
- = link_to({ controller: a.controller, action: a.action }, method: a.verb, class: 'btn btn-tool', data: { turbo: true }) do
1
+ - actions.each_with_index do |a, idx|
2
+ - cf_sym = "link_inner#{idx}".to_sym
3
+ = content_for cf_sym do
3
4
  - icon_key = "activerecord.actions.icons.#{a.sym}"
4
5
  - if I18n.exists?(icon_key)
5
6
  %i.fa{ class: I18n.t(icon_key)}
6
7
  = resource_form_action_label(@resource, a.sym)
8
+
9
+ - if a.turbo_frame.blank?
10
+ = link_to({ controller: a.controller, action: a.action }, method: a.verb, class: 'btn btn-tool') do
11
+ = yield cf_sym
12
+ - else
13
+ = link_to({ controller: a.controller, action: a.action }, class: 'btn btn-tool', data: { turbo: true, turbo_method: a.verb, turbo_frame: a.turbo_frame }) do
14
+ = yield cf_sym
7
15
   
@@ -1,3 +1,3 @@
1
1
  module Olivander
2
- VERSION = '0.1.2.34'.freeze
2
+ VERSION = '0.1.2.35'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: five-two-nw-olivander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.34
4
+ version: 0.1.2.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Dennis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-14 00:00:00.000000000 Z
11
+ date: 2023-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chartkick