scinote-web/app/views/shared/sidebar/_projects.html.erb

17 lines
601 B
Text
Raw Normal View History

2018-03-22 18:41:33 +08:00
<ul>
2018-12-03 20:03:22 +08:00
<% @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>
2018-03-22 18:41:33 +08:00
<% end %>
<% end %>
</ul>