<% components.each_with_index do |component, idx| %>
  <% id = "#{component.class.name.underscore}-#{idx}-#{component.id || 'new'}" %>
  <% css_class = attributes_errors?(component, component.content_attributes) ? 'active accordion-error' : '' %>
  <li class="accordion-navigation <%= css_class %>">
    <%= link_to "##{id}", class: 'accordion-link' do %>
      <%= image_tag asset_path(component.icon) %>
      <%= component.class.localize_name %>
    <% end %>
    <div class="actions">
      <%= link_to t(:remove_component), '#', id: "delete-#{id}", class: 'button tiny right radius remove-component' %>
    </div>
    <%= render 'cms/content_components/component_fields', component: component, component_idx: idx %>
    <% if component.content_attributes.present? %>
      <div id="<%= id %>" class="content">
        <%= render 'cms/content_components/attribute_fields', component: component, component_idx: idx %>
      </div>
    <% end %>
  </li>
<% end %>

<% components.each_with_index do |component, idx| %>
  <% id = "#{component.class.name.underscore}-#{idx}-#{component.id || 'new'}" %>
  <% css_class = attributes_errors?(component, component.content_attributes) ? 'active accordion-error' : '' %>
  <li class="accordion-navigation <%= css_class %>">
    <%= link_to "##{id}", class: 'accordion-link' do %>
      <%= image_tag component.icon %>
      <%= component.class.localize_name %>
    <% end %>
    <div class="actions">
      <%= link_to t(:remove_component), '#', id: "delete-#{id}", class: 'button tiny right radius remove-component' %>
    </div>
    <%= render 'cms/content_components/component_fields', component: component, component_idx: idx %>
    <% if component.content_attributes.present? %>
      <div id="<%= id %>" class="content">
        <%= render 'cms/content_components/attribute_fields', component: component, component_idx: idx %>
      </div>
    <% end %>
  </li>
<% end %>

Revert "use asset_path helper to render component icons"
Revert "use asset_path helper to render component icons"

This reverts commit f35d999b36cb11d580912e2eb5a6938bac123d27.
