2018-03-22 18:41:33 +08:00
|
|
|
<ul>
|
|
|
|
<% if @projects_by_teams.present? then %>
|
|
|
|
<% @projects_by_teams.each do |team, projects| %>
|
|
|
|
<% projects.each do |project| %>
|
|
|
|
|
2018-05-08 22:33:42 +08:00
|
|
|
<% if (project_page? ||
|
2018-03-22 18:41:33 +08:00
|
|
|
sample_types_page_project? ||
|
|
|
|
sample_groups_page_project?) && project == @project %>
|
|
|
|
<li class="active" data-parent="candidate">
|
|
|
|
<span class="tree-link line-wrap no-indent">
|
2018-05-18 16:41:32 +08:00
|
|
|
<i class="no-arrow"></i>
|
2018-03-22 18:41:33 +08:00
|
|
|
<span data-project-id="<%= @project.id %>"
|
|
|
|
title="<%= @project.name %>"><%= @project.name %></span>
|
|
|
|
</span>
|
|
|
|
<%= render partial: 'shared/sidebar/experiments',
|
|
|
|
locals: { project: project } %>
|
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<li data-parent="candidate">
|
|
|
|
<span class="tree-link line-wrap no-indent">
|
2018-05-18 16:41:32 +08:00
|
|
|
<i class="no-arrow"></i>
|
2018-03-22 18:41:33 +08:00
|
|
|
<%= 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 %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|