2016-07-28 17:00:56 +08:00
|
|
|
<%= content_for :sidebar do %>
|
2018-11-29 18:28:36 +08:00
|
|
|
<% current_task ||= current_task || nil %>
|
|
|
|
<% current_experiment ||= current_experiment || current_task&.experiment || nil %>
|
|
|
|
<% current_project ||= current_experiment&.project || current_task&.experiment&.project || nil %>
|
|
|
|
|
|
|
|
<div id="slide-panel"
|
|
|
|
class="visible"
|
|
|
|
data-page="<%= page %>"
|
|
|
|
data-current-project="<%= current_project&.id %>"
|
|
|
|
data-current-experiment="<%= current_experiment&.id %>"
|
|
|
|
data-current-task="<%= current_task&.id %>">
|
2016-02-12 23:52:43 +08:00
|
|
|
<div class="tree">
|
|
|
|
<ul>
|
2019-02-20 21:13:51 +08:00
|
|
|
<% cache [action_name, current_user, current_team] do %>
|
2018-11-29 18:28:36 +08:00
|
|
|
<%= render partial: 'shared/sidebar/projects' %>
|
|
|
|
<% end %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= javascript_include_tag("sidebar") %>
|