Update sidebar usages in partials [SCI-5177]

This commit is contained in:
Oleksii Kriuchykhin 2020-12-02 16:40:30 +01:00
parent 9546b8f71d
commit dc15accc86
11 changed files with 11 additions and 11 deletions

View file

@ -10,7 +10,7 @@ class TeamsController < ApplicationController
format.json do
render json: {
html: render_to_string(
partial: 'shared/sidebar/projects.html.erb', locals: { team: @team }
partial: 'shared/sidebar/projects.html.erb', locals: { team: current_team }
)
}
end

View file

@ -1,5 +1,5 @@
<% provide(:head_title, t("experiments.canvas.head_title", project: h(@project.name)).html_safe) %>
<%= render partial: "shared/sidebar", locals: { current_experiment: @experiment, page: 'canvas' } %>
<%= render partial: 'shared/sidebar/my_modules.html.erb', locals: { experiment: @experiment } %>
<%= render partial: "shared/secondary_navigation" %>
<div class="content-pane" id="experiment-canvas">

View file

@ -1,5 +1,5 @@
<% provide(:head_title, t("experiments.module_archive.head_title", experiment: h(@experiment.name)).html_safe) %>
<%= render partial: "shared/sidebar", locals: { current_experiment: @experiment, page: 'experiment' } %>
<%= render partial: 'shared/sidebar/my_modules.html.erb', locals: { experiment: @experiment } %>
<%= render partial: "shared/secondary_navigation" %>
<div class="content-pane" id="module-archive">

View file

@ -1,5 +1,5 @@
<% provide(:head_title, t("my_modules.activities.head_title", project: h(@my_module.experiment.project.name), module: h(@my_module.name))) %>
<%= render partial: "shared/sidebar", locals: { current_task: @my_module, page: 'task' } %>
<%= render partial: 'shared/sidebar/my_module.html.erb' %>
<%= render partial: "shared/secondary_navigation" %>
<div class="global-activities-container container-flex task-activities">

View file

@ -1,5 +1,5 @@
<% provide(:head_title, t("my_modules.module_archive.head_title", project: h(@my_module.experiment.project.name), module: h(@my_module.name)).html_safe) %>
<%= render partial: "shared/sidebar", locals: { current_task: @my_module, page: 'task' } %>
<%= render partial: 'shared/sidebar/my_module.html.erb' %>
<%= render partial: "shared/secondary_navigation" %>
<div class="content-pane" id="result-archive">

View file

@ -1,7 +1,7 @@
<% provide(:head_title, t("my_modules.protocols.head_title", project: h(@project.name), module: h(@my_module.name)).html_safe) %>
<%= render partial: 'shared/drag_n_drop_overlay' %>
<%= render partial: "shared/sidebar", locals: { current_task: @my_module, page: 'task' } %>
<%= render partial: 'shared/sidebar/my_module.html.erb' %>
<%= render partial: "shared/secondary_navigation" %>
<div class="content-pane my-modules-protocols-index" data-task-id="<%= @my_module.id %>">

View file

@ -6,7 +6,7 @@
project: h(@project.name),
module: h(@my_module.name),
repository: h(@repository.name)).html_safe) %>
<%= render partial: "shared/sidebar", locals: { current_task: @my_module, page: 'task' } %>
<%= render partial: 'shared/sidebar/my_module.html.erb' %>
<%= render partial: "shared/secondary_navigation" %>
<div class="content-pane">

View file

@ -1,5 +1,5 @@
<% provide(:head_title, t("my_modules.results.head_title", project: h(@project.name), module: h(@my_module.name)).html_safe) %>
<%= render partial: "shared/sidebar", locals: { current_task: @my_module, page: 'task' } %>
<%= render partial: 'shared/sidebar/my_module.html.erb' %>
<%= render partial: "shared/secondary_navigation" %>
<%= render partial: 'shared/drag_n_drop_overlay' %>
<%= render partial: 'assets/wopi/create_wopi_file_modal' %>

View file

@ -1,5 +1,5 @@
<% provide(:head_title, t("projects.experiment_archive.head_title", project: h(@project.name)).html_safe) %>
<%= render partial: "shared/sidebar", locals: { current_project: @project, page: 'project' } %>
<%= render partial: 'shared/sidebar/experiments.html.erb', locals: { project: @project } %>
<%= render partial: "shared/secondary_navigation" %>
<div class="content-pane" id="experiment-archive">

View file

@ -1,7 +1,7 @@
<% provide(:head_title, t("projects.index.head_title")) %>
<% if current_team %>
<%= render partial: "shared/sidebar", locals: { page: 'project' } %>
<%= render partial: 'shared/sidebar/projects.html.erb', locals: { team: current_team } %>
<% content_for :breadcrumbs do %>
<%= render partial: "projects/index/breadcrumbs" if @current_folder %>
<% end %>

View file

@ -1,5 +1,5 @@
<% provide(:head_title, t("projects.show.head_title", project: h(@project.name)).html_safe) %>
<%= render partial: "shared/sidebar", locals: { current_project: @project, page: 'project' } %>
<%= render partial: 'shared/sidebar/experiments.html.erb', locals: { project: @project } %>
<%= render partial: "shared/secondary_navigation" %>
<div class="content-pane" id="project-show">