= render :partial => 'layouts/doctype'
<!--[if IE 9]><html class="ie9 login-pf"><![endif]-->
%html.login-pf{:class => get_vmdb_config[:server][:custom_login_logo] ? '' : 'rcue-login', :lang => I18n.locale.to_s.sub('-', '_')}
  %head
    %title
      = h(title_from_layout(@layout))
    = favicon_link_tag
    = stylesheet_link_tag 'application'
    = javascript_include_tag 'application'
    - if Rails.env.development?
      = javascript_include_tag 'miq_debug'
      = stylesheet_link_tag 'miq_debug'

    = csrf_meta_tag
    = render :partial => 'layouts/i18n_js'

  %body{:onload => "miqOnLoad();", :class => get_vmdb_config[:server][:custom_login_logo] ? 'whitelabel' : ''}
    - if MiqServer.my_server(true).logon_status == :starting
      :javascript
        self.setTimeout("miqAjax('/dashboard/login_retry')",10000);
    - else
      = yield

    :javascript
      API.logout();

= render :partial => 'layouts/doctype'
<!--[if IE 9]><html class="ie9 login-pf"><![endif]-->
%html.login-pf{:class => get_vmdb_config[:server][:custom_login_logo] ? '' : 'rcue-login', :lang => I18n.locale.to_s.sub('-', '_')}
  %head
    %title
      = h(title_from_layout(@layout))
    = favicon_link_tag
    = stylesheet_link_tag 'application'
    = javascript_include_tag 'application'
    - if Rails.env.development?
      = javascript_include_tag 'miq_debug'
      = stylesheet_link_tag 'miq_debug'

    = csrf_meta_tag
    = render :partial => 'layouts/i18n_js'

  %body{:onload => "miqOnLoad();", :class => get_vmdb_config[:server][:custom_login_logo] ? 'whitelabel' : ''}
    - if MiqServer.my_server(true).logon_status == :starting
      :javascript
        self.setTimeout("miqAjax('/dashboard/login_retry')",10000);
    - else
      = yield

    :javascript
      API.logout();
      delete localStorage['patternfly-navigation-secondary'];
      delete localStorage['patternfly-navigation-tertiary'];

Clear localStorage data about navigation when showing the login
Clear localStorage data about navigation when showing the login

https://bugzilla.redhat.com/show_bug.cgi?id=1371227
