2020-02-28 21:03:08 +08:00
|
|
|
<ul class="sidebar-root">
|
2018-12-03 20:03:22 +08:00
|
|
|
<% @projects_tree.each do |project| %>
|
2019-02-20 21:13:51 +08:00
|
|
|
<% cache [action_name, current_user, project] do %>
|
2020-02-27 23:04:44 +08:00
|
|
|
<li data-parent="candidate"
|
2020-04-01 04:12:38 +08:00
|
|
|
class="branch" >
|
2020-01-29 20:22:35 +08:00
|
|
|
<span class="tree-link no-indent" title="<%= project.name %>">
|
2020-02-27 23:04:44 +08:00
|
|
|
<% if project.active_experiments.any? %>
|
|
|
|
<i class="fas fa-caret-right tree-toggle"></i>
|
|
|
|
<% end %>
|
2018-12-03 20:03:22 +08:00
|
|
|
<%= link_to project.name,
|
|
|
|
project_action_to_link_to(project),
|
|
|
|
title: project.name,
|
2020-01-29 20:22:35 +08:00
|
|
|
class: 'line-wrap',
|
2020-01-06 23:07:23 +08:00
|
|
|
data: { type: 'project', id: project.id } %>
|
2018-12-03 20:03:22 +08:00
|
|
|
</span>
|
2020-04-01 04:12:38 +08:00
|
|
|
<%= render partial: 'shared/sidebar/experiments', locals: { project: project } %>
|
2018-12-03 20:03:22 +08:00
|
|
|
</li>
|
2018-03-22 18:41:33 +08:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|