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.
@@ -1,3 +1,3 @@
1
1
  module HalloRails
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
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}",
@@ -38,7 +38,6 @@
38
38
 
39
39
  .editable_wrapper{
40
40
  position: relative;
41
- display: inline-block;
42
41
  }
43
42
 
44
43
  .editable:hover:before, .hallo_updating:before{
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.9
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: 1373614379423680740
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: 1373614379423680740
72
+ hash: -950643628269859250
73
73
  requirements: []
74
74
  rubyforge_project:
75
75
  rubygems_version: 1.8.24