mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 09:23:58 +08:00
Merge pull request #7714 from aignatov-bio/ai-sci-10841-add-html-support-for-left-menu
Add html support for left menu [SCI-10841]
This commit is contained in:
commit
81fdc4363c
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
|||
<% left_menu_elements.each_with_index do |item, index| %>
|
||||
<%= link_to item[:url], title: item[:name], class:"sci--layout--menu-item", data: { e2e: "e2e-BT-leftMenu-#{item[:name].downcase}", active: item[:submenu].blank? && item[:active], disabled: current_user.teams.blank?, submenu: item[:submenu].any? } do %>
|
||||
<i class="sn-icon <%= item[:icon] %>"></i>
|
||||
<%= item[:name] %>
|
||||
<%= item[:name].html_safe %>
|
||||
<i class="sn-icon <%= item[:active] ? 'sn-icon-down' : 'sn-icon-right' %> show-submenu"></i>
|
||||
<% end %>
|
||||
<% if item[:submenu].any? %>
|
||||
|
@ -15,7 +15,7 @@
|
|||
<% item[:submenu].each do |subitem| %>
|
||||
<%= link_to subitem[:url], title: subitem[:name], class:"sci--layout--menu-item", data: { e2e: "e2e-BT-leftMenu-#{item[:name].downcase}-#{subitem[:name].downcase}", active: subitem[:active], disabled: current_user.teams.blank? } do %>
|
||||
<i class="sn-icon sn-icon-dot-small"></i>
|
||||
<%= subitem[:name] %>
|
||||
<%= subitem[:name].html_safe %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue