Skip to content

Commit

Permalink
Added Physical Server quadicon
Browse files Browse the repository at this point in the history
Added Physical Server quadicon
  • Loading branch information
MaysaMacedo committed May 2, 2017
1 parent 8899bdc commit 576d53b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/helpers/quadicon_helper.rb
Expand Up @@ -260,7 +260,7 @@ def render_physical_server_quadicon(item, options)
end
end
end
safe_join(output.collect(&:html_safe))
safe_join(output)
end

# FIXME: Even better would be to ask the object what name to use
Expand Down Expand Up @@ -561,11 +561,11 @@ def render_ext_management_system_quadicon(item, options)
if settings(:quadicons, db_for_quadicon)
output << flobj_img_simple("layout/base.png")
item_count = case item
when EmsPhysicalInfra then item.physical_servers.size
when EmsCloud then item.total_vms
else
item.hosts.size
end
when EmsPhysicalInfra then item.physical_servers.size
when EmsCloud then item.total_vms
else
item.hosts.size
end
output << flobj_p_simple("a72", item_count)
output << flobj_p_simple("b72", item.total_miq_templates) if item.kind_of?(EmsCloud)
output << flobj_img_simple("svg/vendor-#{h(item.image_name)}.svg", "c72")
Expand Down Expand Up @@ -701,7 +701,7 @@ def render_single_quad_quadicon(item, options)

def img_for_health_state(item)
case item.health_state
when "Valid" then "100/healthstate-normal.png"
when "Valid" then "svg/healthstate-normal.svg"
when "Critical" then "svg/healthstate-critical.svg"
when "None" then "svg/healthstate-unknown.svg"
when "Warning" then "100/warning.png"
Expand Down

0 comments on commit 576d53b

Please sign in to comment.