effective_resources 0.6.1 → 0.6.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c6c8584157e7ca3fe3e482ebd436d0906ebf046
|
|
4
|
+
data.tar.gz: 1049673bbd0db8406d63b727ab1ee38872bffa18
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 004e347369d61a273a34b2490f26d1485b4d7e2a86410ae056fcce395e49bd19a69b96f8ec0e9306f0f5b943f2e040ca8fed303e2e670c149d54e9072e6ff747
|
|
7
|
+
data.tar.gz: f7da7f6816f54ea04a3e1881d3d801999b4f27a62bba592a17efdabc0686bfed52b37aa34073a19163d4bd5a0a2efed8612cd1c7adde35190878e5e747b6eaf2
|
|
@@ -6,7 +6,9 @@ module Effective
|
|
|
6
6
|
class << self
|
|
7
7
|
def member_actions
|
|
8
8
|
@_effective_member_actions ||= {
|
|
9
|
-
'Save' => { action: :save, data: { disable_with: 'Saving...' }}
|
|
9
|
+
'Save' => { action: :save, data: { disable_with: 'Saving...' }},
|
|
10
|
+
'Save and Continue' => { action: :save, data: { disable_with: 'Saving...' }},
|
|
11
|
+
'Save and Add New' => { action: :save, data: { disable_with: 'Saving...' }}
|
|
10
12
|
}
|
|
11
13
|
end
|
|
12
14
|
end
|
|
@@ -66,9 +66,17 @@ module EffectiveResourcesHelper
|
|
|
66
66
|
glyphicon_to('remove', path, {title: 'Remove'}.merge(options))
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
+
def glyphicon_tag(icon)
|
|
70
|
+
if icon.to_s.start_with?('glyphicon-')
|
|
71
|
+
content_tag(:span, '', class: "glyphicon #{icon}")
|
|
72
|
+
else
|
|
73
|
+
content_tag(:span, '', class: "glyphicon glyphicon-#{icon}")
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
69
77
|
def glyphicon_to(icon, path, options = {})
|
|
70
78
|
content_tag(:a, options.merge(href: path)) do
|
|
71
|
-
if icon.start_with?('glyphicon-')
|
|
79
|
+
if icon.to_s.start_with?('glyphicon-')
|
|
72
80
|
content_tag(:span, '', class: "glyphicon #{icon}")
|
|
73
81
|
else
|
|
74
82
|
content_tag(:span, '', class: "glyphicon glyphicon-#{icon}")
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_resources
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-10-
|
|
11
|
+
date: 2017-10-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|