Skip to content

Commit

Permalink
fi xnav
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Jan 17, 2025
1 parent b74def3 commit 7fa4ae6
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions app/views/admin/_nav.html.erb
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<aside id="admin_menu" class="menu-wrap" style="<%= defined?(current_organ) && current_organ&.admin_theme %>">
<%= render 'brand_nav' %>
<%= render 'admin/factory_simple_nav' if defined? RailsFactory %>
<%= render 'in/trade_nav' if defined? RailsTrade %>
<%= render 'admin/trade_simple_nav' if defined? RailsTrade %>
<%= render 'admin/crm_nav' if defined? RailsCrm %>
<%= render 'admin/ship_simple_nav' if defined? RailsShip %>
<%= render 'admin/finance_nav' if defined? RailsFinance %>
<%= render 'admin/space_nav' if defined? RailsSpace %>
<%= render 'admin/sync_nav' if defined? RailsSync %>
<%= render 'admin/qingflow_nav' if defined? RailsQingflow %>
<%= render 'admin/data_nav' if defined? RailsData %>
<%= render 'admin/auth_nav' if defined? RailsAuth %>
<%= render 'admin/notice_nav' if defined? RailsNotice %>
<%= render 'admin/org_simple_nav' if defined? RailsOrg %>
<%= render 'admin/bench_nav' if defined? RailsBench %>
<%= render 'admin/detail_nav' if defined? RailsDetail %>
<%= render 'admin/factory_simple_nav' if defined?(RailsFactory) && role_permit?(business: 'factory', namespace: 'admin') %>
<%= render 'in/trade_nav' if defined?(RailsTrade) && role_permit?(business: 'trade', namespace: 'in') %>
<%= render 'admin/trade_simple_nav' if defined?(RailsTrade) && role_permit?(business: 'trade', namespace: 'admin') %>
<%= render 'admin/crm_nav' if defined?(RailsCrm) && role_permit?(business: 'trade', namespace: 'admin') %>
<%= render 'admin/ship_simple_nav' if defined?(RailsShip) && role_permit?(business: 'trade', namespace: 'admin') %>
<%= render 'admin/finance_nav' if defined?(RailsFinance) && role_permit?(business: 'finance', namespace: 'admin') %>
<%= render 'admin/space_nav' if defined?(RailsSpace) && role_permit?(business: 'space', namespace: 'admin') %>
<%= render 'admin/sync_nav' if defined?(RailsSync) && role_permit?(business: 'sync', namespace: 'admin') %>
<%= render 'admin/qingflow_nav' if defined?(RailsQingflow) && role_permit?(business: 'qingflow', namespace: 'admin') %>
<%= render 'admin/data_nav' if defined?(RailsData) && role_permit?(business: 'data', namespace: 'admin') %>
<%= render 'admin/auth_nav' if defined?(RailsAuth) && role_permit?(business: 'auth', namespace: 'admin') %>
<%= render 'admin/notice_nav' if defined?(RailsNotice) && role_permit?(business: 'notice', namespace: 'admin') %>
<%= render 'admin/org_simple_nav' if defined?(RailsOrg) && role_permit?(business: 'org', namespace: 'admin') %>
<%= render 'admin/bench_nav' if defined?(RailsBench) && role_permit?(business: 'bench', namespace: 'admin') %>
<%= render 'admin/detail_nav' if defined?(RailsDetail) && role_permit?(business: 'detail', namespace: 'admin') %>
</aside>

0 comments on commit 7fa4ae6

Please sign in to comment.