Revision 9d43fc71
Added by Michael Moll almost 6 years ago
app/helpers/compute_resources_helper.rb | ||
---|---|---|
def power_action_html(vm)
|
||
if vm.ready?
|
||
{
|
||
:data => { :confirm =>_("Are you sure you want to power %{act} %{vm}?") % { :act => action_string(vm).downcase.strip, :vm => vm }},
|
||
:data => { :confirm => _("Are you sure you want to power %{act} %{vm}?") % { :act => action_string(vm).downcase.strip, :vm => vm }},
|
||
:class => "btn btn-danger"
|
||
}
|
||
else
|
||
... | ... | |
{ :class => "btn btn-info" }
|
||
else
|
||
{
|
||
:data => { :confirm =>_("Are you sure you want to %{act} %{vm}?") % { :act => pause_action, :vm => vm } },
|
||
:data => { :confirm => _("Are you sure you want to %{act} %{vm}?") % { :act => pause_action, :vm => vm } },
|
||
:class => "btn btn-danger"
|
||
}
|
||
end
|
Also available in: Unified diff
Fixes #19789 - fix Layout/SpaceAroundOperators cop