diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-09-17 12:16:24 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-09-17 12:16:24 +0200 |
commit | d89ae7df2cf02198570dddd80dfef60796b017b5 (patch) | |
tree | 1028ad42df5de354e9ab3e8472a17d379f10fd53 /app/views/projects/graphs | |
parent | f4816372457c3b513f8707efd87ce34c9922177c (diff) | |
download | gitlab-ce-d89ae7df2cf02198570dddd80dfef60796b017b5.tar.gz |
Move project header title definition to view in question.
Diffstat (limited to 'app/views/projects/graphs')
-rw-r--r-- | app/views/projects/graphs/_header_title.html.haml | 1 | ||||
-rw-r--r-- | app/views/projects/graphs/commits.html.haml | 3 | ||||
-rw-r--r-- | app/views/projects/graphs/show.html.haml | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/app/views/projects/graphs/_header_title.html.haml b/app/views/projects/graphs/_header_title.html.haml new file mode 100644 index 00000000000..1e2f61cd22b --- /dev/null +++ b/app/views/projects/graphs/_header_title.html.haml @@ -0,0 +1 @@ +- header_title project_title(@project, "Graphs", namespace_project_graph_path(@project.namespace, @project, current_ref)) diff --git a/app/views/projects/graphs/commits.html.haml b/app/views/projects/graphs/commits.html.haml index a357736bf52..bf0cac539b8 100644 --- a/app/views/projects/graphs/commits.html.haml +++ b/app/views/projects/graphs/commits.html.haml @@ -1,4 +1,5 @@ -- page_title "Commit statistics" +- page_title "Commits", "Graphs" += render "header_title" .tree-ref-holder = render 'shared/ref_switcher', destination: 'graphs_commits' = render 'head' diff --git a/app/views/projects/graphs/show.html.haml b/app/views/projects/graphs/show.html.haml index ecdd0eaf52f..bd342911e49 100644 --- a/app/views/projects/graphs/show.html.haml +++ b/app/views/projects/graphs/show.html.haml @@ -1,4 +1,5 @@ -- page_title "Contributor statistics" +- page_title "Contributors", "Graphs" += render "header_title" .tree-ref-holder = render 'shared/ref_switcher', destination: 'graphs' = render 'head' |