mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
20 lines
791 B
Text
20 lines
791 B
Text
<ul class="sidebar-root">
|
|
<% @projects_tree.each do |project| %>
|
|
<% cache [action_name, current_user, project] do %>
|
|
<li data-parent="candidate"
|
|
class="branch" >
|
|
<span class="tree-link no-indent" title="<%= project.name %>">
|
|
<% if project.active_experiments.any? %>
|
|
<i class="fas fa-caret-right tree-toggle"></i>
|
|
<% end %>
|
|
<%= link_to project.name,
|
|
project_action_to_link_to(project),
|
|
title: project.name,
|
|
class: 'line-wrap',
|
|
data: { type: 'project', id: project.id } %>
|
|
</span>
|
|
<%= render partial: 'shared/sidebar/experiments', locals: { project: project } %>
|
|
</li>
|
|
<% end %>
|
|
<% end %>
|
|
</ul>
|