<% packages.each do |package, icons| %>

<%= package.name %>

<% icons.each do |icon| %> <%= icon_svg icon, project_icons %> <% end %>
<% end %> <% if packages.blank? %>

Can't find that icon ...

<%= link_to 'Clear search', project_path(project), class: 'btn btn-lg btn-primary' %>
<% end %>

Project Icons <%= project.icons.size %>

<% project.icons.each do |icon| %>
<%= icon.markup %>
<% end %>
<%= content_for :script do %> <% end %>