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

18 lines
649 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 [action_name, current_user, project] do %>
<li data-parent="candidate">
2020-01-29 20:22:35 +08:00
<span class="tree-link no-indent" title="<%= project.name %>">
2018-12-03 20:03:22 +08:00
<i class="no-arrow"></i>
<%= link_to project.name,
project_action_to_link_to(project),
title: project.name,
2020-01-29 20:22:35 +08:00
class: 'line-wrap',
data: { type: 'project', id: project.id } %>
2018-12-03 20:03:22 +08:00
</span>
<%= render partial: 'shared/sidebar/experiments', locals: { project: project } %>
</li>
2018-03-22 18:41:33 +08:00
<% end %>
<% end %>
</ul>