mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 13:16:28 +08:00
14 lines
284 B
Ruby
14 lines
284 B
Ruby
module ApplicationHelper
|
|
def module_page?
|
|
controller_name == 'my_modules'
|
|
end
|
|
|
|
def experiment_page?
|
|
controller_name == 'experiments'
|
|
end
|
|
|
|
def project_page?
|
|
controller_name == 'projects' ||
|
|
(controller_name == 'reports' && action_name == 'index')
|
|
end
|
|
end
|