Home tab added, Repository tab removed\n Ability to download branch

This commit is contained in:
Dmitriy Zaporozhets 2012-02-20 08:39:03 +02:00
parent 40ac2ebc21
commit 5f4a7c3e04
22 changed files with 125 additions and 94 deletions

View file

@ -22,6 +22,8 @@ module ProjectsHelper
end
if controller.controller_name == "snippets" ||
controller.controller_name == "hooks" ||
controller.controller_name == "deploy_keys" ||
controller.controller_name == "team_members"
"current"
end
@ -33,11 +35,26 @@ module ProjectsHelper
end
def repository_tab_class
if controller.controller_name == "repositories" ||
controller.controller_name == "hooks" ||
#if controller.controller_name == "repositories" ||
#controller.controller_name == "hooks" ||
#controller.controller_name == "deploy_keys"
#"current"
#end
end
def commit_tab_class
if controller.controller_name == "commits" ||
controller.controller_name == "repositories" ||
controller.controller_name == "protected_branches"
"current"
end
end
def branches_tab_class
if current_page?(branches_project_repository_path(@project)) ||
controller.controller_name == "protected_branches" ||
controller.controller_name == "deploy_keys"
"current"
current_page?(project_repository_path(@project))
'active'
end
end
end