bootstrap_actioncell 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ODgyMDBjNmY0Yzg4ZGJiMTdkZGNlYmYyY2YxMmM4ZmQ2NTNjMzIwOQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MWJhYzhiMjU2ZmM4NjYxZGRhYmE4OTYxYzFhNTc4OTljNjU2OTA0NA==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NGYyZDc0MzQ3OGU3NDRmZTFmZmNlZTNiOGYyMjEwYjBkYjE3OTdmNWY1MmIw
|
10
|
+
ZmVkZjFiMmY5NzcxY2FmNDVhZjY0NGIyOTI3NjQ2N2EwNzI1Nzc4ZmM4MjZl
|
11
|
+
NDFiMGQ2NzRkYjU4ZWM2M2U0MjlhNzJhNTU0ZjU2NDJhZTU3ODE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZjY5MDg5M2M0NDUzMjVhZjY0OGZlN2I3NzNiZThkOGEyYWExMDVkYjAxMGIw
|
14
|
+
NmNjNmEzY2U0OGM0MGQ0YmRmNTlhOTY5MTg5NTc3OWI0YjFiZTllOGI0Nzg1
|
15
|
+
OWEzM2RkNDFjZWYyNWYyNDhjYjE3ZjcyYWY4ZDgxMjcwNTg4NmI=
|
@@ -2,11 +2,13 @@ module BootstrapActioncell
|
|
2
2
|
module ActioncellHelper
|
3
3
|
def ac_buttons(resource,buttons=[],actions=[],options={})
|
4
4
|
options = {
|
5
|
-
:clear_default_buttons => false
|
5
|
+
:clear_default_buttons => false,
|
6
|
+
:edit_icon => "pencil"
|
7
|
+
:delete_icon => "remove"
|
6
8
|
}.deep_merge(options)
|
7
9
|
unless options[:clear_default_buttons]
|
8
|
-
buttons << {:path => url_for(:controller => resource.class.name.demodulize.underscore.pluralize, :action => 'edit', :id => resource.id), :options => {:class => "btn btn-mini", "data-toggle" => "tooltip", :title => "Edit"}, :icon =>
|
9
|
-
buttons << {:path => url_for(:controller => resource.class.name.demodulize.underscore.pluralize, :action => 'destroy', :id => resource.id), :options => {:class => "btn btn-mini", "data-toggle" => "tooltip", :title => "Delete", :method => "delete", :confirm => "Are you sure you want to delete this #{resource.class.name.demodulize.underscore.split("_").join(" ")}?"}, :icon =>
|
10
|
+
buttons << {:path => url_for(:controller => resource.class.name.demodulize.underscore.pluralize, :action => 'edit', :id => resource.id), :options => {:class => "btn btn-mini", "data-toggle" => "tooltip", :title => "Edit"}, :icon => options[:edit_icon]} if current_ability.blank? or can? :update, resource
|
11
|
+
buttons << {:path => url_for(:controller => resource.class.name.demodulize.underscore.pluralize, :action => 'destroy', :id => resource.id), :options => {:class => "btn btn-mini", "data-toggle" => "tooltip", :title => "Delete", :method => "delete", :confirm => "Are you sure you want to delete this #{resource.class.name.demodulize.underscore.split("_").join(" ")}?"}, :icon => options[:delete_icon]} if current_ability.blank? or can? :destroy, resource
|
10
12
|
end
|
11
13
|
render :partial => "bootstrap_actioncell/buttons", :locals => {:resource => resource, :buttons => buttons, :actions => actions}
|
12
14
|
end
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap_actioncell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- MacKinley Smith
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-20 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: sqlite3
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ! '>='
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ! '>='
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: bundler
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rake
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ! '>='
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ! '>='
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -78,7 +69,6 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: minitest
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ! '>='
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ! '>='
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -94,7 +83,6 @@ dependencies:
|
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: haml-rails
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
87
|
- - ! '>='
|
100
88
|
- !ruby/object:Gem::Version
|
@@ -102,7 +90,6 @@ dependencies:
|
|
102
90
|
type: :runtime
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
94
|
- - ! '>='
|
108
95
|
- !ruby/object:Gem::Version
|
@@ -117,7 +104,6 @@ files:
|
|
117
104
|
- app/assets/javascripts/bootstrap_actioncell/application.js
|
118
105
|
- app/assets/stylesheets/bootstrap_actioncell/application.css
|
119
106
|
- app/controllers/bootstrap_actioncell/application_controller.rb
|
120
|
-
- app/helpers/bootstrap_actioncell/application_helper.rb
|
121
107
|
- app/views/bootstrap_actioncell/_buttons.html.haml
|
122
108
|
- app/views/layouts/bootstrap_actioncell/application.html.erb
|
123
109
|
- config/routes.rb
|
@@ -131,32 +117,25 @@ files:
|
|
131
117
|
- README.rdoc
|
132
118
|
homepage: ''
|
133
119
|
licenses: []
|
120
|
+
metadata: {}
|
134
121
|
post_install_message:
|
135
122
|
rdoc_options: []
|
136
123
|
require_paths:
|
137
124
|
- lib
|
138
125
|
required_ruby_version: !ruby/object:Gem::Requirement
|
139
|
-
none: false
|
140
126
|
requirements:
|
141
127
|
- - ! '>='
|
142
128
|
- !ruby/object:Gem::Version
|
143
129
|
version: '0'
|
144
|
-
segments:
|
145
|
-
- 0
|
146
|
-
hash: 1648579095412426421
|
147
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
|
-
none: false
|
149
131
|
requirements:
|
150
132
|
- - ! '>='
|
151
133
|
- !ruby/object:Gem::Version
|
152
134
|
version: '0'
|
153
|
-
segments:
|
154
|
-
- 0
|
155
|
-
hash: 1648579095412426421
|
156
135
|
requirements: []
|
157
136
|
rubyforge_project:
|
158
|
-
rubygems_version:
|
137
|
+
rubygems_version: 2.0.3
|
159
138
|
signing_key:
|
160
|
-
specification_version:
|
139
|
+
specification_version: 4
|
161
140
|
summary: Adds helper for bootstrap-style actioncells in tables
|
162
141
|
test_files: []
|