<%= text_field_tag :text,
'',
class: 'search-input',
id: 'search-input',
placeholder: I18n.t('search.placeholder'),
autocomplete: :off,
autofocus: true
%>
<% Adminpanel.displayable_resources.each do |resource| %>
<% resource_class = symbol_class(resource) %>
<% if resource_class.has_route?(:index) && (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.collection_name %>
<% end %>
<% end %>
<% end %>