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-04-17 19:52:43 +08:00
|
|
|
<% if (project_page? && action_name.in?(%w(show experiment_archive)) ||
|
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">
|
|
|
|
<i></i>
|
|
|
|
<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">
|
|
|
|
<i></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 %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|