mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 10:06:53 +08:00
20 lines
491 B
Ruby
20 lines
491 B
Ruby
module SearchHelper
|
|
def experiments_results(tag)
|
|
experiments = []
|
|
tag.my_modules.each do |mod|
|
|
experiments << mod.experiment
|
|
end
|
|
experiments.uniq
|
|
end
|
|
|
|
def route_to_other_org(path, search_org, text)
|
|
if search_org != current_organization
|
|
link_to text,
|
|
path,
|
|
data: { confirm: t('users.settings.changed_org_in_search',
|
|
team: search_org.name) }
|
|
else
|
|
link_to text, path
|
|
end
|
|
end
|
|
end
|