mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-14 00:54:32 +08:00
Update experiment links on sidebar between actions
This commit is contained in:
parent
a41d851830
commit
0cdb18ffcd
1 changed files with 8 additions and 2 deletions
|
@ -20,8 +20,14 @@ module SidebarHelper
|
|||
end
|
||||
|
||||
def experiment_action_to_link_to(experiment)
|
||||
# TODO
|
||||
canvas_experiment_path(experiment)
|
||||
case action_name
|
||||
when 'samples'
|
||||
return samples_experiment_path(experiment)
|
||||
when 'archive'
|
||||
return module_archive_experiment_url(experiment)
|
||||
else
|
||||
return canvas_experiment_path(experiment)
|
||||
end
|
||||
end
|
||||
|
||||
def module_action_to_link_to(my_module)
|
||||
|
|
Loading…
Add table
Reference in a new issue