<% provide(:head_title, t("experiments.canvas.head_title", project: h(@project.name)).html_safe) %> <% provide(:sidebar_title, t("sidebar.my_modules.sidebar_title")) %> <% provide(:sidebar_url, sidebar_experiment_path(@experiment)) %> <% provide(:container_class, 'no-second-nav-container') %> <%= content_for :sidebar do %> <%= render partial: 'shared/sidebar/my_modules', locals: { experiment: @experiment, my_modules: @active_modules } %> <% end %>
<%= render partial: 'experiments/show_header' %>
<% if can_manage_experiment?(@experiment) %> <%= link_to modules_new_experiment_path(@experiment, view_mode: 'canvas'), class: 'btn btn-primary new-my-module-button', title: t('experiments.canvas.new_my_module_tooltip'), data: { view_mode: 'active' }, remote: true do %> <% end %> <%=link_to canvas_edit_experiment_url(@experiment), remote: true, type: 'button', id: 'edit-canvas-button', title: t('experiments.canvas.canvas_edit'), data: { action: 'edit' }, class: 'ajax btn btn-light' do %> <% end %> <% end %> <%= render partial: 'task_view_dropdowns' %>
<%=link_to canvas_full_zoom_experiment_path(@experiment), remote: true, type: "button", class: "ajax sci-toggle-item-label", "data-action" => "full_zoom", "data-toggle" => "button", "aria-pressed" => true do %> <%= render partial: 'experiments/canvas_svg_icons', locals: { type: 'full' } %> <% end %> <%=link_to canvas_medium_zoom_experiment_path(@experiment), remote: true, type: "button", class: "ajax sci-toggle-item-label", "data-action" => "medium_zoom" do %> <%= render partial: 'experiments/canvas_svg_icons', locals: { type: 'medium' } %> <% end %> <%=link_to canvas_small_zoom_experiment_path(@experiment), remote: true, type: "button", class: "ajax sci-toggle-item-label", "data-action" => "small_zoom" do %> <%= render partial: 'experiments/canvas_svg_icons', locals: { type: 'small' } %> <% end %>
<% if @active_modules %>
<%= render partial: 'canvas/full_zoom', locals: { experiment: @experiment, my_modules: @active_modules } %>
<% else %>
<%= t('experiments.empty_state.no_active_modules_archived_branch') %>
<% end %>
<%= render partial: 'canvas/full_zoom/tags_modal' %> <%= render partial: "my_modules/modals/manage_module_tags_modal", locals: { my_module: nil } %> <%= javascript_include_tag("my_modules/tags") %> <%= javascript_include_tag("experiments/show") %> <%= javascript_include_tag("eventPause-min") %> <%= javascript_include_tag("projects/canvas") %> <%= javascript_include_tag 'vue_legacy_access_modal' %>