class ServiceTemplateDecorator < MiqDecorator
  def self.fonticon
    'fa fa-cube'
  end

  def fonticon
    atomic? ? super : 'fa fa-cubes'
  end

  def fileicon
    try(:picture) ? "/pictures/#{picture.basename}" : nil
  end

  def single_quad
    fileicon ? {:fileicon => fileicon} : {:fonticon => fonticon}
  end
end

class ServiceTemplateDecorator < MiqDecorator
  def self.fonticon
    'fa fa-cube'
  end

  def fonticon
    atomic? ? super : 'fa fa-cubes'
  end

  def fileicon
    try(:picture) ? "/pictures/#{picture.basename}" : "100/service_template.png"
  end
end

--- 
+++ 
@@ -8,6 +8,10 @@
   end
 
   def fileicon
-    try(:picture) ? "/pictures/#{picture.basename}" : "100/service_template.png"
+    try(:picture) ? "/pictures/#{picture.basename}" : nil
+  end
+
+  def single_quad
+    fileicon ? {:fileicon => fileicon} : {:fonticon => fonticon}
   end
 end
Add single_quad definition for the ServiceTemplate model
