<% provide(:head_title, t("experiments.module_archive.head_title", experiment: h(@experiment.name)).html_safe) %> <% provide(:sidebar_title, t("sidebar.my_modules.sidebar_title_archived")) %> <% provide(:sidebar_url, sidebar_experiment_path(@experiment)) %> <% provide(:container_class, 'no-second-nav-container') %> <%= content_for :sidebar do %> <%= render partial: 'shared/sidebar/archived_my_modules.html.erb', locals: { experiment: @experiment, my_modules: @my_modules } %> <% end %>
<%= render partial: 'experiments/show_header' %>
<% if @my_modules.present? %> <% if can_manage_experiment?(@experiment) %>
<%= button_to restore_my_modules_experiment_path(@experiment), class: 'btn btn-light', method: :post do %> <%= t('experiments.module_archive.restore_option') %> <% end %>
<% end %> <%= render partial: 'task_view_dropdowns.html.erb' %>
<% @my_modules.each_with_index do |my_module, i| %>
<%= render partial: 'canvas/full_zoom/my_module', locals: {experiment: @experiment, my_module: my_module} %>
<% end %>
<% end %> <%= render partial: 'my_modules/modals/manage_module_tags_modal', locals: { my_module: nil } %> <% unless @my_modules.present? %> <%= render partial: 'task_view_dropdowns.html.erb' %> <% end %>
<% unless @my_modules.present? %>
<%= t('experiments.empty_state.no_archived_modules') %>
<% end %> <%= javascript_include_tag('projects/canvas') %> <%= javascript_include_tag('my_modules/archived') %>