mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-29 03:01:58 +08:00
Update sidebar usages in partials [SCI-5177]
This commit is contained in:
parent
9546b8f71d
commit
dc15accc86
11 changed files with 11 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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 %>">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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' %>
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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 %>
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue