mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
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:
parent
3ea85cb2ef
commit
36d63e543a
1 changed files with 5 additions and 1 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue