mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-28 02:27:57 +08:00
Add consistent links for archive for all entities
This commit is contained in:
parent
0cdb18ffcd
commit
a091571d9c
1 changed files with 7 additions and 7 deletions
|
@ -10,9 +10,9 @@ module SidebarHelper
|
|||
|
||||
def project_action_to_link_to(project)
|
||||
case action_name
|
||||
when "samples"
|
||||
when 'samples'
|
||||
return samples_project_path(project)
|
||||
when "archive"
|
||||
when 'archive', 'module_archive', 'experiment_archive'
|
||||
return experiment_archive_project_url(project)
|
||||
else
|
||||
return project_path(project)
|
||||
|
@ -23,7 +23,7 @@ module SidebarHelper
|
|||
case action_name
|
||||
when 'samples'
|
||||
return samples_experiment_path(experiment)
|
||||
when 'archive'
|
||||
when 'archive', 'module_archive', 'experiment_archive'
|
||||
return module_archive_experiment_url(experiment)
|
||||
else
|
||||
return canvas_experiment_path(experiment)
|
||||
|
@ -32,13 +32,13 @@ module SidebarHelper
|
|||
|
||||
def module_action_to_link_to(my_module)
|
||||
case action_name
|
||||
when "results"
|
||||
when 'results'
|
||||
return results_my_module_url(my_module)
|
||||
when "activities"
|
||||
when 'activities'
|
||||
return activities_my_module_url(my_module)
|
||||
when "samples"
|
||||
when 'samples'
|
||||
return samples_my_module_url(my_module)
|
||||
when "archive", "module_archive"
|
||||
when 'archive', 'module_archive', 'experiment_archive'
|
||||
return archive_my_module_url(my_module)
|
||||
else
|
||||
return protocols_my_module_url(my_module)
|
||||
|
|
Loading…
Reference in a new issue