<% Adminpanel.displayable_resources.each do |resource| %>
<% resource_class = symbol_class(resource) %>
<% if can?(:read, resource_class) || can?( :publish, resource_class) %>
<%= link_to(
[route_symbol(resource.to_s)],
data: { no_transition_cache: true },
class: "accordion-toggle accordion-navigation #{is_current_section?(resource_class.display_name)} spinner-link"
) do %>
<%= content_tag :i, nil, class: "fa fa-#{resource_class.icon}" %>
<%= resource_class.display_name.pluralize(I18n.default_locale) %>
<% end %>
<% end %>
<% end %>