forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathterm_of_service_helper.rb
54 lines (53 loc) · 2.08 KB
/
term_of_service_helper.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
module TermOfServiceHelper
ASSIGN_TOS = {
# This set of assignments was created for miq_alerts
"ExtManagementSystem" => {
"enterprise" => N_("The Enterprise"),
"ext_management_system" => N_("Selected Providers"),
"ext_management_system-tags" => N_("Tagged Providers"),
"EmsCluster" => {
"ems_cluster" => N_("Selected Cluster / Deployment Roles"),
"ems_cluster-tags" => N_("Tagged Cluster / Deployment Roles"),
"Host" => {
"host" => N_("Selected Host / Nodes"),
"host-tags" => N_("Tagged Host / Nodes"),
"Vm" => {
"ems_folder" => N_("Selected Folders"),
"resource_pool" => N_("Selected Resource Pools"),
"resource_pool-tags" => N_("Tagged Resource Pools"),
"vm-tags" => N_("Tagged VMs and Instances")
}
}
}
},
"Storage" => {
"enterprise" => N_("The Enterprise"),
"storage" => N_("Selected Datastores"),
"storage-tags" => N_("Tagged Datastores"),
"tenant" => N_("Tenants")
},
"MiqServer" => {
"miq_server" => N_("Selected Servers"),
},
"MiddlewareServer" => {
"enterprise" => N_("The Enterprise"),
"middleware_server" => N_("Selected Middleware Servers")
},
"ContainerNode" => {
"enterprise" => N_("The Enterprise"),
},
# This set of assignments was created for chargeback_rates
:chargeback_compute => {
"enterprise" => N_("The Enterprise"),
"ext_management_system" => N_("Selected Providers"),
"ems_cluster" => N_("Selected Cluster / Deployment Roles"),
"ems_container" => N_("Selected Containers Providers"),
"vm-tags" => N_("Tagged VMs and Instances"),
"container_image-tags" => N_("Tagged Container Images"),
"container_image-labels" => N_("Labeled Container Images"),
"tenant" => N_("Tenants")
}
}
ASSIGN_TOS[:chargeback_storage] = ASSIGN_TOS["Storage"]
ASSIGN_TOS.freeze
end