fix: SuperAdmin Improvements (#3733)

- Fix broken access tokens pages
- Fix broken avatar images in the super admin users tab
- Fix broken pagination links in super admin
- Add agent bot tabs

Fixes: #2021
This commit is contained in:
Sojan Jose
2022-01-12 08:30:00 +05:30
committed by GitHub
parent bec1266242
commit f44be0b1e6
12 changed files with 18 additions and 77 deletions

View File

@@ -17,7 +17,8 @@ as defined by the routes in the `admin/` namespace
super_admins: 'ion ion-unlocked',
access_tokens: 'ion-key',
platform_apps: 'ion ion-social-buffer',
installation_configs: 'ion ion-settings'
installation_configs: 'ion ion-settings',
agent_bots: 'ion ion-social-android',
}
%>
@@ -39,7 +40,7 @@ as defined by the routes in the `admin/` namespace
</li>
<% Administrate::Namespace.new(namespace).resources.each do |resource| %>
<% next if ["account_users", "agent_bots", "dashboard", "devise/sessions", "app_configs" ].include? resource.resource %>
<% next if ["account_users", "dashboard", "devise/sessions", "app_configs" ].include? resource.resource %>
<li class="navigation__link navigation__link--<%= nav_link_state(resource) %>">
<i class="<%= sidebar_icons[resource.resource.to_sym] %>"></i>
<%= link_to(

View File

@@ -62,5 +62,5 @@ It renders the `_table` partial to display details about the resources.
table_title: "page-title"
) %>
<%= paginate resources %>
<%= paginate resources, param_name: '_page'%>
</section>