2023-03-22 16:42:54 +08:00
|
|
|
<div class="sci--layout--left-menu-container">
|
2023-04-03 19:20:10 +08:00
|
|
|
<% left_menu_elements.each_with_index do |item, index| %>
|
|
|
|
<%= link_to item[:url], title: item[:name], class:"sci--layout--menu-item", data: { active: item[:submenu].blank? && item[:active], disabled: current_user.teams.blank?, submenu: item[:submenu].any? } do %>
|
2023-03-22 16:42:54 +08:00
|
|
|
<i class="fas <%= item[:icon] %>"></i>
|
|
|
|
<%= item[:name] %>
|
2023-04-03 19:20:10 +08:00
|
|
|
<i class="fas <%= item[:active] ? 'fa-caret-down' : 'fa-caret-up' %> show-submenu"></i>
|
|
|
|
<% end %>
|
|
|
|
<% if item[:submenu].any? %>
|
|
|
|
<div class="sci--layout--menu-submenu" data-id="<%= index %>" data-collapsed="<%= !item[:active] %>" style="--submenu-items:<%= item[:submenu].length %>">
|
|
|
|
<% item[:submenu].each do |subitem| %>
|
|
|
|
<%= link_to subitem[:url], title: subitem[:name], class:"sci--layout--menu-item", data: { active: subitem[:active], disabled: current_user.teams.blank? } do %>
|
|
|
|
<i class="dot"></i>
|
|
|
|
<%= subitem[:name] %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2023-03-22 16:42:54 +08:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2018-03-14 21:33:34 +08:00
|
|
|
</div>
|
2018-03-28 20:12:11 +08:00
|
|
|
|
2023-04-14 17:38:28 +08:00
|
|
|
|