%#
# Navigation
This partial is used to display the navigation in Administrate.
By default, the navigation contains navigation links
for all resources in the admin dashboard,
as defined by the routes in the `admin/` namespace
%>
<%= javascript_pack_tag 'superadmin_pages' %>
<%= stylesheet_pack_tag 'superadmin_pages' %>
<%
sidebar_icons = {
accounts: 'ion ion-briefcase',
users: 'ion ion-person-stalker',
super_admins: 'ion ion-unlocked',
access_tokens: 'ion-key',
installation_configs: 'ion ion-settings'
}
%>
<%= link_to image_tag('/brand-assets/logo.svg', alt: 'Chatwoot Admin Dashboard'), super_admin_root_url %>
v<%= Chatwoot.config[:version] %>
-
<%= link_to "Dashboard", super_admin_root_url %>
<% Administrate::Namespace.new(namespace).resources.each do |resource| %>
<% next if ["account_users", "agent_bots","dashboard", "devise/sessions"].include? resource.resource %>
-
<%= link_to(
display_resource_name(resource),
resource_index_route(resource)
) if valid_action? :index, resource %>
<% end %>
-
<%= link_to "Sidekiq", sidekiq_web_url, { target: "_blank" } %>
-
<%= link_to "Logout", super_admin_logout_url %>