<%= content_for :sidebar do %> <% current_task ||= current_task || nil %> <% current_experiment ||= current_experiment || current_task&.experiment || nil %> <% current_project ||= current_experiment&.project || current_task&.experiment&.project || nil %>
<% cache [action_name, current_user, current_team] do %> <%= render partial: 'shared/sidebar/projects', locals: { current_project: current_project, current_experiment: current_experiment, current_task: current_task } %> <% end %>
<% end %>