forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiagnostics_server_center.rb
111 lines (111 loc) · 3.44 KB
/
diagnostics_server_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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
class ApplicationHelper::Toolbar::DiagnosticsServerCenter < ApplicationHelper::Toolbar::Basic
button_group('support_reloading', [
button(
:refresh_server_summary,
'fa fa-repeat fa-lg',
N_('Reload Current Display'),
nil,
:klass => ApplicationHelper::Button::DiagnosticsSummary),
button(
:refresh_workers,
'fa fa-repeat fa-lg',
N_('Reload current workers display'),
nil,
:klass => ApplicationHelper::Button::RefreshWorkers),
button(
:refresh_audit_log,
'fa fa-repeat fa-lg',
N_('Reload the Audit Log Display'),
nil,
:klass => ApplicationHelper::Button::DiagnosticsAuditLogs),
button(
:fetch_audit_log,
'fa fa-download fa-lg',
N_('Download the Entire Audit Log File'),
nil,
:url => "/fetch_audit_log",
:klass => ApplicationHelper::Button::DiagnosticsAuditLogs),
button(
:refresh_log,
'fa fa-repeat fa-lg',
N_('Reload the EVM Log Display'),
nil,
:klass => ApplicationHelper::Button::DiagnosticsEvmLogs),
button(
:fetch_log,
'fa fa-download fa-lg',
N_('Download the Entire EVM Log File'),
nil,
:url => "/fetch_log",
:klass => ApplicationHelper::Button::DiagnosticsEvmLogs),
button(
:refresh_production_log,
'fa fa-repeat fa-lg',
proc do
_('Reload the %{log_type} Log Display') % {:log_type => _(@sb[:rails_log])}
end,
nil,
:klass => ApplicationHelper::Button::DiagnosticsProductionLogs),
button(
:fetch_production_log,
'fa fa-download fa-lg',
proc do
_('Download the Entire %{log_type} Log File') % {:log_type => _(@sb[:rails_log])}
end,
nil,
:url => "/fetch_production_log",
:klass => ApplicationHelper::Button::DiagnosticsProductionLogs),
])
button_group('ldap_domain_vmdb', [
select(
:server_collect_logs_choice,
'fa fa-filter fa-lg',
N_('Collect Logs'),
N_('Collect'),
:items => [
button(
:collect_current_logs,
'fa fa-filter fa-lg',
N_('Collect the current logs from the selected Server'),
N_('Collect current logs'),
:klass => ApplicationHelper::Button::CollectLogs
),
button(
:collect_logs,
'fa fa-filter fa-lg',
N_('Collect all logs from the selected Server'),
N_('Collect all logs'),
:klass => ApplicationHelper::Button::CollectLogs
),
]
),
button(
:log_depot_edit,
'pficon pficon-edit fa-lg',
N_('Edit the Log Depot settings for the selected Server'),
N_('Edit'),
:klass => ApplicationHelper::Button::LogDepotEdit),
select(
:restart_vmdb_choice,
'fa fa-cog fa-lg',
t = N_('Configuration'),
t,
:items => [
button(
:restart_server,
'pficon pficon-restart',
t = N_('Restart server'),
t,
:confirm => N_("Warning: Server will be restarted, do you want to continue?"),
:klass => ApplicationHelper::Button::DiagnosticsSummary),
button(
:restart_workers,
'pficon pficon-restart',
N_('Select a worker to restart'),
N_('Restart selected worker'),
:confirm => N_("Warning: Selected node will be restarted, do you want to continue?"),
:klass => ApplicationHelper::Button::RestartWorkers),
]
),
])
end