summaryrefslogtreecommitdiff
path: root/app/helpers/projects_helper.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-09-17 12:16:24 +0200
committerDouwe Maan <douwe@gitlab.com>2015-09-17 12:16:24 +0200
commitd89ae7df2cf02198570dddd80dfef60796b017b5 (patch)
tree1028ad42df5de354e9ab3e8472a17d379f10fd53 /app/helpers/projects_helper.rb
parentf4816372457c3b513f8707efd87ce34c9922177c (diff)
downloadgitlab-ce-d89ae7df2cf02198570dddd80dfef60796b017b5.tar.gz
Move project header title definition to view in question.
Diffstat (limited to 'app/helpers/projects_helper.rb')
-rw-r--r--app/helpers/projects_helper.rb35
1 files changed, 0 insertions, 35 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index 6a2de0de77c..a2b83c50c2e 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -317,41 +317,6 @@ module ProjectsHelper
@ref || @repository.try(:root_ref)
end
- def detect_project_title(project)
- name, url =
- if current_controller? 'wikis'
- ['Wiki', get_project_wiki_path(project)]
- elsif current_controller? 'project_members'
- ['Members', namespace_project_project_members_path(project.namespace, project)]
- elsif current_controller? 'labels'
- ['Labels', namespace_project_labels_path(project.namespace, project)]
- elsif current_controller? 'members'
- ['Members', project_files_path(project)]
- elsif current_controller? 'commits'
- ['Commits', project_commits_path(project)]
- elsif current_controller? 'graphs'
- ['Graphs', namespace_project_graph_path(project.namespace, project, current_ref)]
- elsif current_controller? 'network'
- ['Network', namespace_project_network_path(project.namespace, project, current_ref)]
- elsif current_controller? 'milestones'
- ['Milestones', namespace_project_milestones_path(project.namespace, project)]
- elsif current_controller? 'snippets'
- ['Snippets', namespace_project_snippets_path(project.namespace, project)]
- elsif current_controller? 'issues'
- ['Issues', namespace_project_issues_path(project.namespace, project)]
- elsif current_controller? 'merge_requests'
- ['Merge Requests', namespace_project_merge_requests_path(project.namespace, project)]
- elsif current_controller? 'tree', 'blob'
- ['Files', project_files_path(project)]
- elsif current_path? 'projects#activity'
- ['Activity', activity_project_path(project)]
- else
- [nil, nil]
- end
-
- project_title(project, name, url)
- end
-
private
def filename_path(project, filename)