hallo_rails 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
data/lib/hallo_rails/version.rb
CHANGED
data/lib/hallo_rails.rb
CHANGED
@@ -25,7 +25,7 @@ module HalloRails
|
|
25
25
|
|
26
26
|
options[:content] = sanitize(options[:content]) if options[:sanitize]
|
27
27
|
|
28
|
-
content_tag( :div, class: 'editable_wrapper') do
|
28
|
+
content_tag( :div, class: 'editable_wrapper', style: options[:inline] ? 'display:inline-block' : nil ) do
|
29
29
|
content_tag options[:tag], options[:content].present? ? options[:content] : options[:blank_text],
|
30
30
|
class: "#{'editable' if !options.has_key?(:editable) or options[:editable]}",
|
31
31
|
id: "#{object_name}_#{method.to_s}",
|
@@ -44,7 +44,7 @@ module HalloRails
|
|
44
44
|
content: object.send(method).try(:html_safe),
|
45
45
|
blank_text: "<i>Click to Edit</i>".html_safe
|
46
46
|
options[:content] = sanitize(options[:content]) if options[:sanitize]
|
47
|
-
content_tag( :div, class: 'editable_wrapper') do
|
47
|
+
content_tag( :div, class: 'editable_wrapper', style: options[:inline] ? 'display:inline-block' : nil) do
|
48
48
|
content_tag( options[:tag], options[:content].present? ? options[:content] : options[:blank_text],
|
49
49
|
class: 'form_editable',
|
50
50
|
id: "#{object_name}_#{method.to_s}",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hallo_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -60,7 +60,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
60
60
|
version: '0'
|
61
61
|
segments:
|
62
62
|
- 0
|
63
|
-
hash:
|
63
|
+
hash: -950643628269859250
|
64
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: '0'
|
70
70
|
segments:
|
71
71
|
- 0
|
72
|
-
hash:
|
72
|
+
hash: -950643628269859250
|
73
73
|
requirements: []
|
74
74
|
rubyforge_project:
|
75
75
|
rubygems_version: 1.8.24
|