bootstrap_actioncell 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDAxNGY2MDc5YTM2MTFiYzQ4ZmU4MThmYmYxZjQ5M2E4ZmMyZDdjZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWQxMWI4MDBmZTA4OTVhN2QyMjgyZDFlZWM0MGFkMjFiZDEzNzM3MQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmZiM2YwNTI5MGY0NTI4MWI5ZWQ5MGI0ZTYwNGMxMTIyOWRkYjA4N2ZlYjVk
|
10
|
+
YmM3ZjJmODM5MGY5Mjk5YmVlODkzYmRjZTg1NmZmOGRlZTBjOTU2NzUxY2Nk
|
11
|
+
OWM2NmMyNmU3ZmU1YzMzODkxYzM3N2IwYWU3NDgzNjRkYTYyMTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjU5YmJhOTc0ZmY1OWVhYzc4ZDlmNzE5N2MwMWRiODNkYjI2MzgyMjZlMTMw
|
14
|
+
MmYzMmM0OTM4YTJhZThiNDgyZWMyNTJkYjI4MDNmMGIwZWNlMDNlOWEzMTE2
|
15
|
+
MDJkZDQ1MTViNjM2NGIyM2QxMjExZmU1ZmQ1YjMyYjRjOTcxMTM=
|
@@ -9,8 +9,8 @@ module BootstrapActioncell
|
|
9
9
|
:delete_icon => "remove"
|
10
10
|
}.deep_merge(options)
|
11
11
|
unless options[:clear_default_buttons]
|
12
|
-
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 options[:edit_button] and defined?(current_ability)
|
13
|
-
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 options[:delete_button] and defined?(current_ability)
|
12
|
+
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 options[:edit_button] and (!defined?(current_ability) or can? :update, resource)
|
13
|
+
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 options[:delete_button] and (!defined?(current_ability) or can? :destroy, resource)
|
14
14
|
end
|
15
15
|
render :partial => "bootstrap_actioncell/buttons", :locals => {:resource => resource, :buttons => buttons, :actions => actions}
|
16
16
|
end
|