mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-15 09:34:29 +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
|
end
|
||||||
|
|
||||||
def experiment_action_to_link_to(experiment)
|
def experiment_action_to_link_to(experiment)
|
||||||
# TODO
|
case action_name
|
||||||
canvas_experiment_path(experiment)
|
when 'samples'
|
||||||
|
return samples_experiment_path(experiment)
|
||||||
|
when 'archive'
|
||||||
|
return module_archive_experiment_url(experiment)
|
||||||
|
else
|
||||||
|
return canvas_experiment_path(experiment)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def module_action_to_link_to(my_module)
|
def module_action_to_link_to(my_module)
|
||||||
|
|
Loading…
Add table
Reference in a new issue