scinote-web/app/views/shared/sidebar/_projects.html.erb
2018-12-03 13:03:22 +01:00

16 lines
601 B
Text

<ul>
<% @projects_tree.each do |project| %>
<% cache [current_user, project] do %>
<li data-parent="candidate" data-project-id="<%= project.id %>">
<span class="tree-link line-wrap no-indent">
<i class="no-arrow"></i>
<%= link_to project.name,
project_action_to_link_to(project),
title: project.name,
data: { project_id: project.id } %>
</span>
<%= render partial: 'shared/sidebar/experiments', locals: { project: project } %>
</li>
<% end %>
<% end %>
</ul>