compendium 1.1.3.1 → 1.1.3.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,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTRmYjc0MzRiODE5OWFjNGJmM2M4MWEzOTBkNTFkZTNhYWE3N2NjYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGJjNTc5NjFkMjhmNTIyZTgxYjkwYTY1ZTM1NjQzZTI5MTkyYTUzYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmEyZmZmOTEwYTBhODAwYTczODRmOTYxYmUwZjMxNDFmNGU5N2YyZmVmOGFi
|
10
|
+
MzE4NWVjZGFjOGQwOWNkMDlkZTVjY2VlZTYzMjM4ZDc1ZWUzMDA4YzVmZWQ4
|
11
|
+
M2JjYzg0MGFiN2RhOWQwOGUxODUwNjI0OTdlOWVmZjFhZGIxODM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjI2OWI0NDc1N2I4ODdiMzdhNWQwYTQ1MGJiMTlkNGE1ZmY5NWY2YmZhZmM1
|
14
|
+
Y2RhMGVmZDhlZDI0MTI0Yjg3MmNjNjY1MmFmNmUyYjcyMWVmMTVkYTc3OTlh
|
15
|
+
NjcxYjc4MmVmYjNiMzJlOTc3MjU0ZWZmMDllMjRjZDAwMTk5NGI=
|
@@ -1,14 +1,24 @@
|
|
1
1
|
.option
|
2
2
|
{
|
3
|
-
|
3
|
+
@mixin label-font
|
4
4
|
{
|
5
|
-
margin: 0px 0px 0px 0px;
|
6
5
|
font-family: "Arial";
|
7
6
|
font-size: 14px;
|
8
7
|
font-weight: bold;
|
9
8
|
color: #575757;
|
10
9
|
}
|
11
10
|
|
11
|
+
.label
|
12
|
+
{
|
13
|
+
@include label-font;
|
14
|
+
}
|
15
|
+
|
16
|
+
.option-label
|
17
|
+
{
|
18
|
+
margin: 0px 0px 0px 0px;
|
19
|
+
@include label-font;
|
20
|
+
}
|
21
|
+
|
12
22
|
.option-note
|
13
23
|
{
|
14
24
|
font-style: italic;
|
@@ -9,30 +9,29 @@ module Compendium::Presenters
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def label(form)
|
12
|
-
label = case option.type.to_sym
|
13
|
-
when :boolean, :radio
|
14
|
-
name
|
15
|
-
|
16
|
-
else
|
17
|
-
form.label option.name, name
|
18
|
-
end
|
19
|
-
|
20
|
-
out = ActiveSupport::SafeBuffer.new
|
21
|
-
out << content_tag(:span, label, class: 'option-label')
|
22
|
-
|
23
12
|
if option.note?
|
24
13
|
key = option.note == true ? :"#{option.name}_note" : option.note
|
25
14
|
note = t("options.#{key}", cascade: { offset: 2 })
|
15
|
+
end
|
16
|
+
|
17
|
+
if option.note? && defined?(AccessibleTooltip)
|
26
18
|
title = t("options.#{option.name}_note_title", default: '', cascade: { offset: 2 })
|
19
|
+
tooltip = accessible_tooltip(:help, label: name, title: title) { note }
|
20
|
+
return form.label option.name, tooltip
|
21
|
+
else
|
22
|
+
label = case option.type.to_sym
|
23
|
+
when :boolean, :radio
|
24
|
+
name
|
27
25
|
|
28
|
-
|
29
|
-
|
30
|
-
else
|
31
|
-
out << content_tag(:div, note, class: 'option-note')
|
26
|
+
else
|
27
|
+
form.label option.name, name
|
32
28
|
end
|
33
|
-
end
|
34
29
|
|
35
|
-
|
30
|
+
out = ActiveSupport::SafeBuffer.new
|
31
|
+
out << content_tag(:span, label, class: 'option-label')
|
32
|
+
out << content_tag(:div, note, class: 'option-note') if option.note?
|
33
|
+
out
|
34
|
+
end
|
36
35
|
end
|
37
36
|
|
38
37
|
def note
|
data/lib/compendium/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compendium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.3.
|
4
|
+
version: 1.1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Vandersluis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
type: :runtime
|