Skip to content

Commit

Permalink
Fix Providers text and Cluster in host listnav
Browse files Browse the repository at this point in the history
  • Loading branch information
AparnaKarve committed May 31, 2017
1 parent c6e3ae2 commit 9c376dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/layouts/listnav/_host.html.haml
Expand Up @@ -73,7 +73,7 @@
%ul.nav.nav-pills.nav-stacked
- if role_allows?(:feature => "ems_infra_show") && !@record.ext_management_system.nil?
%li
= link_to("#{ui_lookup(:table => "ext_management_systems")}: #{@record.ext_management_system.name}",
= link_to("#{ui_lookup(:table => "ems_infra")}: #{@record.ext_management_system.name}",
ems_infra_path(@record.ext_management_system),
:title => _("Show this parent %{provider} for this %{host}") % {:host => host_title, :provider => ui_lookup(:table => "ems_infra")})

Expand All @@ -84,6 +84,9 @@
{:controller => "ems_cluster", :action => 'show', :id => @record.ems_cluster.id.to_s},
:title => _("Show parent %{cluster} for this %{host}") % {:host => host_title, :cluster => cluster_title})

- if role_allows?(:feature => "ems_cluster_show") && @record.ems_cluster.nil?
= li_link(:if => false, :text => "#{title_for_cluster}: #{_('None')}")

- if role_allows?(:feature => "storage_show_list")
= li_link(:count => @record.number_of(:storages),
:record_id => @record.id,
Expand Down

0 comments on commit 9c376dd

Please sign in to comment.