sugar 0.0.29 → 0.0.31

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.29
1
+ 0.0.31
@@ -96,9 +96,10 @@ module Sugar
96
96
  end
97
97
 
98
98
  def link_to_edit(something)
99
+ text = t('.edit', :default => [:'krasivotokak.sugar.edit', 'Edit'])
99
100
  link_to(image_tag('icons/edit.png',
100
- :alt => t('.edit'),
101
- :title => t('.edit')),
101
+ :alt => text,
102
+ :title => text),
102
103
  edit_polymorphic_path(something),
103
104
  :class => 'ajax edit action')
104
105
  end
@@ -173,6 +174,11 @@ module Sugar
173
174
  key ||= ".#{text.gsub(/[\s\.,-]+/, '_').downcase}"
174
175
  translate(key, :default => text)
175
176
  end
177
+
178
+ def body_class
179
+ controller_name = controller.controller_name
180
+ {:class => "m_#{controller_name} m_#{controller_name}-#{controller.action_name}"}
181
+ end
176
182
  end
177
183
  end
178
184
 
data/sugar.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sugar}
8
- s.version = "0.0.29"
8
+ s.version = "0.0.31"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alexander Semyonov"]
12
- s.date = %q{2009-09-01}
12
+ s.date = %q{2009-09-26}
13
13
  s.email = %q{rotuka@tokak.ru}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sugar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.29
4
+ version: 0.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Semyonov
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-01 00:00:00 +04:00
12
+ date: 2009-09-26 00:00:00 +04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15