forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrift_center.rb
44 lines (44 loc) · 1.54 KB
/
drift_center.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
class ApplicationHelper::Toolbar::DriftCenter < ApplicationHelper::Toolbar::Basic
button_group('drift_tasks', [
twostate(
:drift_all,
'product product-compare_all fa-lg',
N_('All attributes'),
nil,
:klass => ApplicationHelper::Button::ButtonWithoutRbacCheck,
:url => "drift_all",
:url_parms => "?id=\#{$vms_comp}&compare_task=all&db=\#{@compare_db}&id=\#{@drift_obj.id}"),
twostate(
:drift_diff,
'product product-compare_diff fa-lg',
N_('Attributes with different values'),
nil,
:klass => ApplicationHelper::Button::ButtonWithoutRbacCheck,
:url => "drift_differences",
:url_parms => "?id=\#{$vms_comp}&compare_task=different&db=\#{@compare_db}&id=\#{@drift_obj.id}"),
twostate(
:drift_same,
'product product-compare_same fa-lg',
N_('Attributes with same values'),
nil,
:klass => ApplicationHelper::Button::ButtonWithoutRbacCheck,
:url => "drift_same",
:url_parms => "?id=\#{$vms_comp}&compare_task=same&db=\#{@compare_db}&id=\#{@drift_obj.id}"),
])
button_group('compare_mode', [
twostate(
:driftmode_details,
'fa fa-bars fa-lg',
N_('Details Mode'),
nil,
:klass => ApplicationHelper::Button::ButtonWithoutRbacCheck,
:url => "drift_mode"),
twostate(
:driftmode_exists,
'product product-exists fa-lg',
N_('Exists Mode'),
nil,
:klass => ApplicationHelper::Button::ButtonWithoutRbacCheck,
:url => "drift_mode"),
])
end