gridion 0.0.23 → 0.0.24
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gridion/grid_helper.rb +6 -6
- data/lib/gridion/version.rb +1 -1
- metadata +8 -8
data/lib/gridion/grid_helper.rb
CHANGED
@@ -170,13 +170,13 @@ module Gridion
|
|
170
170
|
if actions.kind_of?(Proc)
|
171
171
|
result << actions.call(object, options)
|
172
172
|
elsif actions.kind_of?(Array)
|
173
|
-
result << "#{link_to
|
174
|
-
result << "#{link_to
|
175
|
-
result << "#{link_to
|
173
|
+
result << "#{link_to I18n.t("gridion.actions.show", default: "Show"), object_list, :class=>%w{action_link show}}" if actions.include?(:show)
|
174
|
+
result << "#{link_to I18n.t("gridion.actions.edit", default: "Edit"), [:edit]+ object_list, :class=>%w{action_link edit}}" if actions.include?(:edit)
|
175
|
+
result << "#{link_to I18n.t("gridion.actions.delete", default: "Delete"), object_list, :class=>%w{action_link delete}, :method=>:delete, :confirm=>'Are you sure?'}" if actions.include?(:delete)
|
176
176
|
elsif actions.kind_of?(Hash)
|
177
|
-
result << "#{link_to
|
178
|
-
result << "#{link_to
|
179
|
-
result << "#{link_to
|
177
|
+
result << "#{link_to I18n.t("gridion.actions.show", default: "Show"), object_list, {:class=>%w{action_link show}}.merge(actions[:show]||{})}" if actions.has_key?(:show)
|
178
|
+
result << "#{link_to I18n.t("gridion.actions.edit", default: "Edit"), [:edit]+ object_list, {:class=>%w{action_link edit}}.merge(actions[:edit]||{})}" if actions.include?(:edit)
|
179
|
+
result << "#{link_to I18n.t("gridion.actions.delete", default: "Delete"), object_list, {:class=>%w{action_link delete}, :method=>:delete, :confirm=>'Are you sure?'}.merge(actions[:delete]||{})}" if actions.include?(:delete)
|
180
180
|
end
|
181
181
|
result << "</#{table_cell_tag}>"
|
182
182
|
end
|
data/lib/gridion/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gridion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.24
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-10 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sqlite3
|
16
|
-
requirement: &
|
16
|
+
requirement: &70314271632300 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70314271632300
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: kaminari
|
27
|
-
requirement: &
|
27
|
+
requirement: &70314271631780 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70314271631780
|
36
36
|
description: Simple grid helper for rails
|
37
37
|
email:
|
38
38
|
- william@tofugear.com
|
@@ -92,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
92
|
version: '0'
|
93
93
|
segments:
|
94
94
|
- 0
|
95
|
-
hash: -
|
95
|
+
hash: -2482056720665743498
|
96
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
97
|
none: false
|
98
98
|
requirements:
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: '0'
|
102
102
|
segments:
|
103
103
|
- 0
|
104
|
-
hash: -
|
104
|
+
hash: -2482056720665743498
|
105
105
|
requirements: []
|
106
106
|
rubyforge_project:
|
107
107
|
rubygems_version: 1.8.10
|