Skip to content

Instantly share code, notes, and snippets.

@domcleal
Created August 30, 2013 10:51
Show Gist options
  • Select an option

  • Save domcleal/6388663 to your computer and use it in GitHub Desktop.

Select an option

Save domcleal/6388663 to your computer and use it in GitHub Desktop.
diff --git a/app/views/compute_resources_vms/show.html.erb b/app/views/compute_resources_vms/show.html.erb
index cbabb9a..5463561 100644
--- a/app/views/compute_resources_vms/show.html.erb
+++ b/app/views/compute_resources_vms/show.html.erb
@@ -2,8 +2,10 @@
<%= render "compute_resources_vms/show/#{@compute_resource.provider.downcase}" %>
</div>
-<% title_actions *available_actions(@vm),
+<%
+ all_actions = available_actions(@vm).push(
show_console_action(@vm.ready?,
link_to_if_authorized(_("Console"), hash_for_console_compute_resource_vm_path, {:disabled => @vm.nil? || [email protected]?, :class => "btn btn-info"})),
- link_to(_("Back"), compute_resource_path(@compute_resource), :class=>'btn')
+ link_to(_("Back"), compute_resource_path(@compute_resource), :class=>'btn'))
+ title_actions *all_actions
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment