app/views/ops/_all_tabs.html.haml
#ops_tabs
-# Settings
- case x_active_tree
- when :settings_tree
- if selected?(x_node, "z")
= render :partial => "layouts/flash_msg"
%ul.nav.nav-tabs{'role' => 'tablist'}
= miq_tab_header("settings_evm_servers", @sb[:active_tab]) do
= _("Zone")
= miq_tab_header("settings_smartproxy_affinity", @sb[:active_tab]) do
= _("SmartProxy Affinity")
= miq_tab_header("settings_advanced", @sb[:active_tab]) do
= _("Advanced")
.tab-content
= miq_tab_content("settings_smartproxy_affinity", @sb[:active_tab]) do
= render :partial => "settings_smartproxy_affinity_tab"
= miq_tab_content("settings_evm_servers", @sb[:active_tab]) do
= render :partial => "settings_evm_servers_tab"
= miq_tab_content("settings_advanced", @sb[:active_tab]) do
= render :partial => "settings_advanced_tab"
- elsif selected?(x_node, "svr")
= render :partial => "layouts/flash_msg"
- cur_svr_id = x_node.split("-").last.to_i
%ul.nav.nav-tabs{'role' => 'tablist'}
= miq_tab_header("settings_server", @sb[:active_tab]) do
= _("Server")
= miq_tab_header("settings_authentication", @sb[:active_tab]) do
= _("Authentication")
= miq_tab_header("settings_workers", @sb[:active_tab]) do
= _("Workers")
- if cur_svr_id == my_server.id && !MiqEnvironment::Command.is_podified?
= miq_tab_header("settings_custom_logos", @sb[:active_tab]) do
= _("Custom Logos")
= miq_tab_header("settings_advanced", @sb[:active_tab]) do
= _("Advanced")
.tab-content
= miq_tab_content("settings_server", @sb[:active_tab]) do
= render :partial => "settings_server_tab"
= miq_tab_content("settings_authentication", @sb[:active_tab]) do
= render :partial => "settings_authentication_tab"
= miq_tab_content("settings_workers", @sb[:active_tab]) do
= render :partial => "settings_workers_tab"
- if cur_svr_id == my_server.id
= miq_tab_content("settings_custom_logos", @sb[:active_tab]) do
= render :partial => "settings_custom_logos_tab"
= miq_tab_content("settings_advanced", @sb[:active_tab]) do
= render :partial => "settings_advanced_tab"
- else
- if selected_settings_tree?(x_node)
.tab-content
#settings_list
= render :partial => "settings_list_tab"
- else
= render(:partial => "layouts/flash_msg")
%ul.nav.nav-tabs{'role' => 'tablist'}
= miq_tab_header("settings_details", @sb[:active_tab]) do
= _("Details")
= miq_tab_header("settings_cu_collection", @sb[:active_tab]) do
= _("C & U Collection")
= miq_tab_header("settings_tags", @sb[:active_tab]) do
= _("Tags")
= miq_tab_header("settings_replication", @sb[:active_tab]) do
= _("Replication")
= miq_tab_header("settings_help_menu", @sb[:active_tab]) do
= _("Help Menu")
= miq_tab_header("settings_advanced", @sb[:active_tab]) do
= _("Advanced")
.tab-content
= miq_tab_content("settings_details", @sb[:active_tab]) do
= render :partial => "settings_details_tab"
= miq_tab_content("settings_cu_collection", @sb[:active_tab]) do
= render :partial => "settings_cu_collection_tab"
= miq_tab_content("settings_tags", @sb[:active_tab]) do
#ops_tags_subtabs
%ul.nav.nav-tabs.nav-tabs-pf{:style => 'font-size: 12px'}
= miq_tab_header("settings_co_categories", @sb[:active_subtab]) do
= escape_javascript(current_tenant.name)
= _("Categories")
= miq_tab_header("settings_co_tags", @sb[:active_subtab]) do
= escape_javascript(current_tenant.name)
= _("Tags")
= miq_tab_header("settings_import_tags", @sb[:active_subtab]) do
= _("Import Tags")
= miq_tab_header("settings_import", @sb[:active_subtab]) do
= _("Import Variables")
= miq_tab_header("settings_label_tag_mapping", @sb[:active_subtab]) do
= _("Map Tags")
.tab-content
= miq_tab_content("settings_co_categories", @sb[:active_subtab]) do
= render :partial => "settings_co_categories_tab"
= miq_tab_content("settings_co_tags", @sb[:active_subtab]) do
= render :partial => "settings_co_tags_tab"
= miq_tab_content("settings_import_tags", @sb[:active_subtab]) do
= render :partial => "settings_import_tags_tab"
= miq_tab_content("settings_import", @sb[:active_subtab]) do
= render :partial => "settings_import_tab"
= miq_tab_content("settings_label_tag_mapping", @sb[:active_subtab]) do
= render :partial => "settings_label_tag_mapping_tab"
:javascript
miq_tabs_init("#ops_tags_subtabs", "/ops/change_tab", {parent_tab_id: 'settings_tags'});
= miq_tab_content("settings_replication", @sb[:active_tab]) do
= render :partial => "settings_replication_tab"
= miq_tab_content("settings_help_menu", @sb[:active_tab]) do
= render :partial => "settings_help_menu_tab"
= miq_tab_content("settings_advanced", @sb[:active_tab]) do
= render :partial => "settings_advanced_tab"
-# Diagnostics
- when :diagnostics_tree
- if x_node.split("-")[0] == "z"
%ul.nav.nav-tabs{'role' => 'tablist'}
= miq_tab_header("diagnostics_roles_servers", @sb[:active_tab]) do
= _("Roles by Servers")
= miq_tab_header("diagnostics_servers_roles", @sb[:active_tab]) do
= _("Servers by Roles")
= miq_tab_header("diagnostics_server_list", @sb[:active_tab]) do
= _("Servers")
= miq_tab_header("diagnostics_collect_logs", @sb[:active_tab]) do
= _("Collect Logs")
= miq_tab_header("diagnostics_cu_repair", @sb[:active_tab]) do
= _("C & U Gap Collection")
.tab-content
= miq_tab_content("diagnostics_roles_servers", @sb[:active_tab]) do
= render :partial => "diagnostics_roles_servers_tab"
= miq_tab_content("diagnostics_servers_roles", @sb[:active_tab]) do
= render :partial => "diagnostics_servers_roles_tab"
= miq_tab_content("diagnostics_server_list", @sb[:active_tab]) do
= render :partial => "diagnostics_server_list_tab"
= miq_tab_content("diagnostics_collect_logs", @sb[:active_tab]) do
= render :partial => "diagnostics_collect_logs_tab"
= miq_tab_content("diagnostics_cu_repair", @sb[:active_tab]) do
= render :partial => "diagnostics_cu_repair_tab"
- elsif x_node.split("-")[0] == "svr"
%ul.nav.nav-tabs{'role' => 'tablist'}
- if @sb[:selected_server_id] == my_server.id || @selected_server.started?
= miq_tab_header("diagnostics_summary", @sb[:active_tab]) do
= _("Summary")
= miq_tab_header("diagnostics_workers", @sb[:active_tab]) do
= _("Workers")
- if !MiqEnvironment::Command.is_podified?
= miq_tab_header("diagnostics_collect_logs", @sb[:active_tab]) do
= _("Collect Logs")
- if @sb[:selected_server_id] == my_server.id
= miq_tab_header("diagnostics_evm_log", @sb[:active_tab]) do
= _("%{product} Log") % {:product => Vmdb::Appliance.PRODUCT_NAME}
= miq_tab_header("diagnostics_audit_log", @sb[:active_tab]) do
= _("Audit Log")
= miq_tab_header("diagnostics_production_log", @sb[:active_tab]) do
= _(@sb[:rails_log])
= _("Log")
.tab-content
- if @sb[:selected_server_id] == my_server.id || @selected_server.started?
= miq_tab_content("diagnostics_summary", @sb[:active_tab]) do
= render :partial => "diagnostics_summary_tab"
= miq_tab_content("diagnostics_workers", @sb[:active_tab]) do
= render :partial => "diagnostics_workers_tab"
- if !MiqEnvironment::Command.is_podified?
= miq_tab_content("diagnostics_collect_logs", @sb[:active_tab]) do
= render :partial => "diagnostics_collect_logs_tab"
- if @sb[:selected_server_id] == my_server.id
= miq_tab_content("diagnostics_evm_log", @sb[:active_tab]) do
= render :partial => "diagnostics_evm_log_tab"
= miq_tab_content("diagnostics_audit_log", @sb[:active_tab]) do
= render :partial => "diagnostics_audit_log_tab"
= miq_tab_content("diagnostics_production_log", @sb[:active_tab]) do
= render :partial => "diagnostics_production_log_tab"
- else
%ul.nav.nav-tabs{'role' => 'tablist'}
= miq_tab_header("diagnostics_zones", @sb[:active_tab]) do
= _("Zones")
- if super_admin_user?
= miq_tab_header("diagnostics_roles_servers", @sb[:active_tab]) do
= _("Roles by Servers")
= miq_tab_header("diagnostics_servers_roles", @sb[:active_tab]) do
= _("Servers by Roles")
= miq_tab_header("diagnostics_server_list", @sb[:active_tab]) do
= _("Servers")
- if super_admin_user?
= miq_tab_header("diagnostics_database", @sb[:active_tab]) do
= _("Database")
= miq_tab_header("diagnostics_orphaned_data", @sb[:active_tab]) do
= _("Orphaned Data")
.tab-content
= miq_tab_content("diagnostics_zones", @sb[:active_tab]) do
= render :partial => "diagnostics_zones_tab"
- if super_admin_user?
= miq_tab_content("diagnostics_roles_servers", @sb[:active_tab]) do
= render :partial => "diagnostics_roles_servers_tab"
= miq_tab_content("diagnostics_servers_roles", @sb[:active_tab]) do
= render :partial => "diagnostics_servers_roles_tab"
= miq_tab_content("diagnostics_server_list", @sb[:active_tab]) do
= render :partial => "diagnostics_server_list_tab"
- if super_admin_user?
= miq_tab_content("diagnostics_database", @sb[:active_tab]) do
- if @sb[:active_tab] == "diagnostics_database"
= render :partial => "diagnostics_database_tab"
= miq_tab_content("diagnostics_orphaned_data", @sb[:active_tab]) do
= render :partial => "diagnostics_orphaned_data_tab"
- when :rbac_tree
#rbac_details
= render :partial => "rbac_details_tab"
:javascript
miq_tabs_init("#ops_tabs", "/ops/change_tab");