app/helpers/application_helper/toolbar/container_center.rb
class ApplicationHelper::Toolbar::ContainerCenter < ApplicationHelper::Toolbar::Basic
button_group('container_monitoring', [
select(
:container_monitoring_choice,
nil,
t = N_('Monitoring'),
t,
:items => [
button(
:container_timeline,
'ff ff-timeline fa-lg',
N_('Show Timelines for this Container'),
N_('Timelines'),
:url => "/show",
:url_parms => "?display=timeline",
:options => {:entity => N_('Container')},
:klass => ApplicationHelper::Button::ContainerTimeline
),
button(
:container_perf,
'ff ff-monitoring fa-lg',
N_('Show Capacity & Utilization data for this Container'),
N_('Utilization'),
:url => "/show",
:url_parms => "?display=performance",
:options => {:entity => N_('Container')},
:klass => ApplicationHelper::Button::ContainerPerf
),
]
),
])
button_group('container_policy', [
select(
:container_policy_choice,
nil,
t = N_('Policy'),
t,
:items => [
button(
:container_tag,
'pficon pficon-edit fa-lg',
N_('Edit Tags for this Container'),
N_('Edit Tags'),
:url_parms => "main_div",
:send_checked => true),
]
),
])
end