Active state selected by default when viewing archived content [SCI-8533] (#5474)

* Redirect to archived state when clicking on archived experiment [SCI-8533]

Co-authored-by: Sboursen <dev.sboursen@gmail.com>

* Cover the case where Project is archived and experiment is not [SCI-8533]

Co-authored-by: Sboursen <dev.sboursen@gmail.com>

---------

Co-authored-by: Sboursen <dev.sboursen@gmail.com>
This commit is contained in:
Soufiane 2023-05-25 08:53:12 +02:00 committed by GitHub
parent 3ea85cb2ef
commit 36d63e543a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,11 @@
<div class="workflow-img-wrapper" list-render="true">
<%= render partial: 'projects/show/experiment_workflow_image_container', locals: { experiment: experiment } %>
</div>
<%= link_to experiment.name, my_modules_experiment_path(experiment), title: experiment.name, class: 'name-link' %>
<% if experiment.archived_branch? %>
<%= link_to experiment.name, module_archive_experiment_url(experiment), title: experiment.name, class: 'name-link' %>
<% else %>
<%= link_to experiment.name, my_modules_experiment_url(experiment), title: experiment.name, class: 'name-link' %>
<% end %>
</div>
<div class="dates-and-img-container">
<div class="dates-container">