<% if @item.icon :%> <% if @item.icon.file : %> <% else if @item.icon.glyph : %> <% else if @item.icon.fa : %> <% end %> <% end %>