Skip to content

Commit

Permalink
Merge pull request #706 from cben/changeAuthTab
Browse files Browse the repository at this point in the history
Call changeAuthTab from more miq_tab_header()s
(cherry picked from commit 48e62ed)

https://bugzilla.redhat.com/show_bug.cgi?id=1434096
  • Loading branch information
himdel authored and simaishi committed Mar 20, 2017
1 parent a728abb commit a8a6fc4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/views/layouts/angular/_multi_auth_credentials.html.haml
Expand Up @@ -5,29 +5,29 @@
%h3
= legendtext
%ul.nav.nav-tabs
= miq_tab_header('default') do
= miq_tab_header('default', nil, {'ng-click' => "changeAuthTab('default')"}) do
%i{"error-on-tab" => "default", :style => "color:#cc0000"}
= _("Default")
- if %w(ems_cloud ems_infra).include?(controller_name)
= miq_tab_header('metrics') do
= miq_tab_header('metrics', nil, {'ng-click' => "changeAuthTab('metrics')"}) do
%i{"error-on-tab" => "metrics", :style => "color:#cc0000"}
= _("C & U Database")
= miq_tab_header('amqp') do
= miq_tab_header('amqp', nil, {'ng-click' => "changeAuthTab('amqp')"}) do
%i{"error-on-tab" => "amqp", :style => "color:#cc0000"}
= _("Events")
= miq_tab_header('ssh_keypair') do
= miq_tab_header('ssh_keypair', nil, {'ng-click' => "changeAuthTab('ssh_keypair')"}) do
%i{"error-on-tab" => "ssh_keypair", :style => "color:#cc0000"}
= _("RSA key pair")
- elsif controller_name == "ems_container"
= miq_tab_header('hawkular') do
= miq_tab_header('hawkular', nil, {'ng-click' => "changeAuthTab('hawkular')"}) do
%i{"error-on-tab" => "hawkular", :style => "color:#cc0000"}
= _("Hawkular")
- elsif controller_name == "host"
= miq_tab_header('remote') do
= miq_tab_header('remote', nil, {'ng-click' => "changeAuthTab('remote')"}) do
= _("Remote Login")
= miq_tab_header('ws') do
= miq_tab_header('ws', nil, {'ng-click' => "changeAuthTab('ws')"}) do
= _("Web Services")
= miq_tab_header('ipmi') do
= miq_tab_header('ipmi', nil, {'ng-click' => "changeAuthTab('ipmi')"}) do
= _("IPMI")

.tab-content
Expand Down

0 comments on commit a8a6fc4

Please sign in to comment.