Return own tab for wall. Improve Wiki nav. Removed attachments listing page

This commit is contained in:
Dmitriy Zaporozhets 2013-03-18 22:43:14 +02:00
parent 6956f1f6e1
commit ae06a0aab8
12 changed files with 25 additions and 62 deletions

View file

@ -80,16 +80,6 @@ module TabHelper
end
end
def project_wiki_tab_class
[:files, :wall].each do |action|
return "active" if current_page?(controller: "projects", action: action, id: @project)
end
if ['wikis', 'snippets'].include? controller.controller_name
"active"
end
end
def branches_tab_class
if current_page?(branches_project_repository_path(@project)) ||
current_controller?(:protected_branches) ||