Skip to content

Commit

Permalink
Add cockpit button for cloud instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpovolny committed Mar 28, 2017
1 parent a3e98a7 commit 1098ea5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/helpers/application_helper/toolbar/x_vm_cloud_center.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,15 @@ class ApplicationHelper::Toolbar::XVmCloudCenter < ApplicationHelper::Toolbar::B
),
])
include ApplicationHelper::Toolbar::Cloud::InstanceOperationsButtonGroupMixin
button_group('vm_access', [
button(
:cockpit_console,
'pficon pficon-screen fa-lg',
N_('Open a new browser window with Cockpit for this VM. This requires that Cockpit is pre-configured on the VM.'),
N_('Web Console'),
# :image => "cockpit",
:url => "launch_cockpit",
:klass => ApplicationHelper::Button::CockpitConsole
)
])
end

0 comments on commit 1098ea5

Please sign in to comment.