2011-03-09 13:13:36 +00:00
|
|
|
module ApplicationHelper
|
2011-11-01 20:18:22 +00:00
|
|
|
def choose_title
|
|
|
|
title = if ['categories', 'personal_repositories', 'downloads'].include?(controller.controller_name)
|
|
|
|
APP_CONFIG['repo_project_name']
|
|
|
|
else
|
|
|
|
APP_CONFIG['project_name']
|
|
|
|
end
|
|
|
|
|
|
|
|
return title
|
|
|
|
end
|
2011-03-09 13:13:36 +00:00
|
|
|
end
|