Skip to content

Commit

Permalink
Merge pull request #1471 from AparnaKarve/fix_host_listnav
Browse files Browse the repository at this point in the history
Fix Providers text and Cluster info in host listnav
(cherry picked from commit fa2a46d)

https://bugzilla.redhat.com/show_bug.cgi?id=1460777
  • Loading branch information
mzazrivec authored and simaishi committed Jun 12, 2017
1 parent 4af024d commit 2fb220b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/layouts/listnav/_host.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,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 @@ -83,6 +83,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 2fb220b

Please sign in to comment.