Skip to content

Commit

Permalink
Added fileicon and fonticon
Browse files Browse the repository at this point in the history
  • Loading branch information
MaysaMacedo committed May 8, 2017
1 parent ea603e0 commit 39a8a8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions app/decorators/physical_server_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
class PhysicalServerDecorator < MiqDecorator
def fileicon
"svg/vendor-#{vendor.downcase}.svg"
end

def fonticon
'pficon pficon-server'
end

def img_for_physical_vendor
"svg/vendor-#{label_for_vendor.downcase}.svg"
end
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/quadicon_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def quadicon_named_for_base_class?(item)
end

def quadicon_named_for_base_model?(item)
%w(VmOrTempalte PhysicalServer).include?(item.class.base_model.name)
%w(VmOrTemplate PhysicalServer).include?(item.class.base_model.name)
end

def quadicon_builder_name_from(item)
Expand Down

0 comments on commit 39a8a8a

Please sign in to comment.