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 %>">
|
2020-01-24 20:22:04 +08:00
|
|
|
<div class="tree perfect-scrollbar" data-scroll="<%= params[:scroll] %>">
|
2020-02-28 21:03:08 +08:00
|
|
|
<% cache [action_name, current_user, current_team] do %>
|
|
|
|
<%= render partial: 'shared/sidebar/projects', locals: {
|
2020-04-01 04:12:38 +08:00
|
|
|
} %>
|
2020-02-28 21:03:08 +08:00
|
|
|
<% end %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|