mirror of
https://github.com/lingble/chatwoot.git
synced 2025-12-26 15:47:21 +00:00
- Improve how settings are rendered in Chatwoot Super admin panel - Add google settings support - show setting for community edition ## Settings page - community edition <img width="1702" alt="Screenshot 2025-07-08 at 9 08 03 PM" src="https://github.com/user-attachments/assets/0434f56f-ea74-44a8-a7b0-8e26fab88093" /> ## Expanded settings <img width="1675" alt="Screenshot 2025-07-03 at 2 17 16 AM" src="https://github.com/user-attachments/assets/3aa1f888-c54a-4b58-896a-0d3e828fa176" /> --------- Co-authored-by: Sojan Jose <sojan@Sojans-MacBook-Pro.local> Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
56 lines
2.3 KiB
Plaintext
56 lines
2.3 KiB
Plaintext
<%#
|
|
# 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
|
|
%>
|
|
|
|
<%= vite_client_tag %>
|
|
<%= vite_javascript_tag 'superadmin_pages' %>
|
|
|
|
<%
|
|
sidebar_icons = {
|
|
accounts: 'icon-building-4-line',
|
|
users: 'icon-user-follow-line',
|
|
platform_apps: 'icon-apps-2-line',
|
|
agent_bots: 'icon-robot-line',
|
|
}
|
|
%>
|
|
|
|
<div class="border-slate-100 border-r w-56 flex-shrink-0 justify-between h-full flex flex-col" role="navigation">
|
|
<div>
|
|
<div class="flex mx-4 mb-4 border-slate-100 border-b py-6">
|
|
<%= link_to image_tag('/brand-assets/logo_thumbnail.svg', alt: 'Chatwoot Admin Dashboard', class: 'h-10'), super_admin_root_url %>
|
|
<div class="flex flex-col ml-3">
|
|
<div class="text-sm">Chatwoot <%= Chatwoot.config[:version] %></div>
|
|
<div class="text-xs text-slate-700 mt-0.5">Super Admin Console</div>
|
|
</div>
|
|
</div>
|
|
|
|
<ul class="my-4">
|
|
<%= render partial: "nav_item", locals: { icon: 'icon-grid-line', url: super_admin_root_url, label: 'Dashboard' } %>
|
|
<% Administrate::Namespace.new(namespace).resources.each do |resource| %>
|
|
<% next if ["account_users", "access_tokens", "installation_configs", "dashboard", "devise/sessions", "app_configs", "instance_statuses", "settings"].include? resource.resource %>
|
|
<%= render partial: "nav_item", locals: {
|
|
icon: sidebar_icons[resource.resource.to_sym],
|
|
url: resource_index_route(resource),
|
|
label: display_resource_name(resource),
|
|
}
|
|
%>
|
|
|
|
<% end %>
|
|
<%= render 'settings_menu', open: settings_open? %>
|
|
</ul>
|
|
</div>
|
|
<div>
|
|
<ul class="my-4">
|
|
<%= render partial: "nav_item", locals: { icon: 'icon-mist-fill', url: sidekiq_web_url, label: 'Sidekiq Dashboard' } %>
|
|
<%= render partial: "nav_item", locals: { icon: 'icon-health-book-line', url: super_admin_instance_status_url, label: 'Instance Health' } %>
|
|
<%= render partial: "nav_item", locals: { icon: 'icon-dashboard-line', url: '/', label: 'Agent Dashboard' } %>
|
|
<%= render partial: "nav_item", locals: { icon: 'icon-logout-circle-r-line', url: super_admin_logout_url, label: 'Logout' } %>
|
|
</ul>
|
|
</div>
|
|
</div>
|