2016-02-12 23:52:43 +08:00
|
|
|
module SecondaryNavigationHelper
|
|
|
|
|
|
|
|
def is_project_info?
|
2016-07-29 22:46:25 +08:00
|
|
|
action_name == 'show'
|
2016-02-12 23:52:43 +08:00
|
|
|
end
|
|
|
|
|
2016-07-29 22:20:35 +08:00
|
|
|
def is_project_show?
|
2016-07-29 22:46:25 +08:00
|
|
|
action_name == 'show'
|
2016-02-12 23:52:43 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
def is_project_samples?
|
2016-07-29 22:46:25 +08:00
|
|
|
action_name == 'samples'
|
2016-02-12 23:52:43 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
def is_project_reports?
|
2016-07-29 22:48:56 +08:00
|
|
|
controller_name == 'reports' && action_name == 'index'
|
2016-02-12 23:52:43 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
def is_project_archive?
|
2016-07-29 22:46:25 +08:00
|
|
|
action_name == 'experiment_archive'
|
2016-07-29 22:20:35 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
def is_experiment_canvas?
|
2016-07-29 22:46:25 +08:00
|
|
|
action_name == 'canvas'
|
2016-07-29 22:20:35 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
def is_experiment_archive?
|
2016-07-29 22:46:25 +08:00
|
|
|
action_name == 'module_archive'
|
2016-02-12 23:52:43 +08:00
|
|
|
end
|
|
|
|
|
2016-08-02 14:44:07 +08:00
|
|
|
def is_experiment_samples?
|
|
|
|
action_name == 'samples'
|
|
|
|
end
|
|
|
|
|
2016-02-12 23:52:43 +08:00
|
|
|
def is_module_info?
|
2016-07-29 22:46:25 +08:00
|
|
|
action_name == 'show'
|
2016-02-12 23:52:43 +08:00
|
|
|
end
|
|
|
|
|
2016-07-21 19:11:15 +08:00
|
|
|
def is_module_protocols?
|
2016-07-29 22:46:25 +08:00
|
|
|
action_name == 'protocols'
|
2016-02-12 23:52:43 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
def is_module_results?
|
2016-07-29 22:46:25 +08:00
|
|
|
action_name == 'results'
|
2016-02-12 23:52:43 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
def is_module_activities?
|
2016-07-29 22:46:25 +08:00
|
|
|
action_name == 'activities'
|
2016-02-12 23:52:43 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
def is_module_samples?
|
2016-07-29 22:46:25 +08:00
|
|
|
action_name == 'samples'
|
2016-02-12 23:52:43 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
def is_module_archive?
|
2016-07-29 22:46:25 +08:00
|
|
|
action_name == 'archive'
|
2016-02-12 23:52:43 +08:00
|
|
|
end
|
|
|
|
end
|