Commit cdcb354f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Remove header title from project pages

With new navigation design it makes no sense to duplicate title in the
header
Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 85495c8c
- page_title "Activity" - page_title "Activity"
- header_title project_title(@project, "Activity", activity_project_path(@project))
= render 'projects/last_push' = render 'projects/last_push'
......
- page_title 'Artifacts', "#{@build.name} (##{@build.id})", 'Builds' - page_title 'Artifacts', "#{@build.name} (##{@build.id})", 'Builds'
= render 'projects/builds/header_title'
.top-block.row-content-block.clearfix .top-block.row-content-block.clearfix
.pull-right .pull-right
......
- page_title 'Badges' - page_title 'Badges'
- badges_path = namespace_project_badges_path(@project.namespace, @project) - badges_path = namespace_project_badges_path(@project.namespace, @project)
- header_title project_title(@project, 'Badges', badges_path)
.prepend-top-10 .prepend-top-10
.panel.panel-default .panel.panel-default
......
- page_title "Blame", @blob.path, @ref - page_title "Blame", @blob.path, @ref
- header_title project_title(@project, "Files", project_files_path(@project))
%h3.page-title Blame view %h3.page-title Blame view
......
- header_title project_title(@project, "Files", project_files_path(@project))
- page_title "Edit", @blob.path, @ref - page_title "Edit", @blob.path, @ref
= render "header_title"
.file-editor .file-editor
%ul.nav-links.no-bottom.js-edit-mode %ul.nav-links.no-bottom.js-edit-mode
......
- page_title "New File", @path.presence, @ref - page_title "New File", @path.presence, @ref
= render "header_title"
%h3.page-title %h3.page-title
New File New File
......
- page_title @blob.path, @ref - page_title @blob.path, @ref
= render "header_title"
= render 'projects/last_push' = render 'projects/last_push'
......
- page_title "Branches" - page_title "Branches"
= render "projects/commits/header_title"
= render "projects/commits/head" = render "projects/commits/head"
.row-content-block .row-content-block
.pull-right .pull-right
......
- page_title "New Branch" - page_title "New Branch"
= render "projects/commits/header_title"
- if @error - if @error
.alert.alert-danger .alert.alert-danger
......
- header_title project_title(@project, "Builds", project_builds_path(@project))
- page_title "Builds" - page_title "Builds"
= render "header_title"
.top-area .top-area
%ul.nav-links %ul.nav-links
......
- page_title "#{@build.name} (##{@build.id})", "Builds" - page_title "#{@build.name} (##{@build.id})", "Builds"
= render "header_title"
- trace_with_state = @build.trace_with_state - trace_with_state = @build.trace_with_state
.build-page .build-page
......
- page_title "Builds", "#{@commit.title} (#{@commit.short_id})", "Commits" - page_title "Builds", "#{@commit.title} (#{@commit.short_id})", "Commits"
= render "projects/commits/header_title"
.prepend-top-default .prepend-top-default
= render "commit_box" = render "commit_box"
= render "ci_menu"
= render "ci_menu"
= render "builds" = render "builds"
- page_title "#{@commit.title} (#{@commit.short_id})", "Commits" - page_title "#{@commit.title} (#{@commit.short_id})", "Commits"
- page_description @commit.description - page_description @commit.description
= render "projects/commits/header_title"
.prepend-top-default .prepend-top-default
= render "commit_box" = render "commit_box"
- if @commit.status - if @commit.status
......
- header_title project_title(@project, "Commits", project_commits_path(@project))
- page_title "Commits", @ref - page_title "Commits", @ref
= render "header_title"
= content_for :meta_tags do = content_for :meta_tags do
- if current_user - if current_user
= auto_discovery_link_tag(:atom, namespace_project_commits_url(@project.namespace, @project, @ref, format: :atom, private_token: current_user.private_token), title: "#{@project.name}:#{@ref} commits") = auto_discovery_link_tag(:atom, namespace_project_commits_url(@project.namespace, @project, @ref, format: :atom, private_token: current_user.private_token), title: "#{@project.name}:#{@ref} commits")
......
- page_title "Compare" - page_title "Compare"
= render "projects/commits/header_title"
= render "projects/commits/head" = render "projects/commits/head"
.row-content-block .row-content-block
......
- page_title "#{params[:from]}...#{params[:to]}" - page_title "#{params[:from]}...#{params[:to]}"
= render "projects/commits/header_title"
= render "projects/commits/head" = render "projects/commits/head"
......
- header_title project_title(@project, "Container Registry", project_container_registry_path(@project))
- page_title "Container Registry" - page_title "Container Registry"
= render "header_title"
%hr %hr
...@@ -37,4 +36,4 @@ ...@@ -37,4 +36,4 @@
%th %th
- @tags.each do |tag| - @tags.each do |tag|
= render 'tag', tag: tag = render 'tag', tag: tag
\ No newline at end of file
- page_title "Find File", @ref - page_title "Find File", @ref
- header_title project_title(@project, "Files", project_files_path(@project))
.file-finder-holder.tree-holder.clearfix .file-finder-holder.tree-holder.clearfix
.nav-block .nav-block
......
- header_title project_title(@project, "Graphs", namespace_project_graph_path(@project.namespace, @project, current_ref))
- page_title "Continuous Integration", "Graphs" - page_title "Continuous Integration", "Graphs"
= render "header_title"
= render 'head' = render 'head'
.row-content-block.append-bottom-default .row-content-block.append-bottom-default
.oneline .oneline
......
- page_title "Commits", "Graphs" - page_title "Commits", "Graphs"
= render "header_title"
= render 'head' = render 'head'
.row-content-block.append-bottom-default .row-content-block.append-bottom-default
......
- page_title "Languages", "Graphs" - page_title "Languages", "Graphs"
= render "header_title"
= render 'head' = render 'head'
.row-content-block.append-bottom-default .row-content-block.append-bottom-default
......
- page_title "Contributors", "Graphs" - page_title "Contributors", "Graphs"
= render "header_title"
= render 'head' = render 'head'
.row-content-block.append-bottom-default .row-content-block.append-bottom-default
......
- header_title project_title(@project, "Issues", namespace_project_issues_path(@project.namespace, @project))
- page_title "Edit", "#{@issue.title} (##{@issue.iid})", "Issues" - page_title "Edit", "#{@issue.title} (##{@issue.iid})", "Issues"
= render "header_title"
%h3.page-title %h3.page-title
Edit Issue ##{@issue.iid} Edit Issue ##{@issue.iid}
......
- page_title "Issues" - page_title "Issues"
= render "header_title"
= content_for :meta_tags do = content_for :meta_tags do
- if current_user - if current_user
......
- page_title "New Issue" - page_title "New Issue"
= render "header_title"
%h3.page-title %h3.page-title
New Issue New Issue
......
- page_title "#{@issue.title} (##{@issue.iid})", "Issues" - page_title "#{@issue.title} (##{@issue.iid})", "Issues"
- page_description @issue.description - page_description @issue.description
- page_card_attributes @issue.card_attributes - page_card_attributes @issue.card_attributes
- header_title project_title(@project, "Issues", namespace_project_issues_path(@project.namespace, @project))
.clearfix.detail-page-header .clearfix.detail-page-header
.issuable-header .issuable-header
......
- header_title project_title(@project, "Labels", namespace_project_labels_path(@project.namespace, @project))
- page_title "Edit", @label.name, "Labels" - page_title "Edit", @label.name, "Labels"
= render "header_title"
%h3.page-title %h3.page-title
Edit Label Edit Label
......
- page_title "Labels" - page_title "Labels"
= render "header_title"
.top-area .top-area
.nav-text .nav-text
......
- page_title "New Label" - page_title "New Label"
= render "header_title"
%h3.page-title %h3.page-title
New Label New Label
......
- header_title project_title(@project, "Merge Requests", namespace_project_merge_requests_path(@project.namespace, @project))
- page_title "#{@merge_request.title} (#{@merge_request.to_reference})", "Merge Requests" - page_title "#{@merge_request.title} (#{@merge_request.to_reference})", "Merge Requests"
- page_description @merge_request.description - page_description @merge_request.description
- page_card_attributes @merge_request.card_attributes - page_card_attributes @merge_request.card_attributes
- header_title project_title(@project, "Merge Requests", namespace_project_merge_requests_path(@project.namespace, @project))
- if diff_view == 'parallel' - if diff_view == 'parallel'
- fluid_layout true - fluid_layout true
......
- page_title "Edit", "#{@merge_request.title} (#{@merge_request.to_reference}", "Merge Requests" - page_title "Edit", "#{@merge_request.title} (#{@merge_request.to_reference}", "Merge Requests"
= render "header_title"
%h3.page-title %h3.page-title
Edit Merge Request #{@merge_request.to_reference} Edit Merge Request #{@merge_request.to_reference}
......
- page_title "Merge Requests" - page_title "Merge Requests"
= render "header_title"
= render 'projects/last_push' = render 'projects/last_push'
......
- page_title "#{@merge_request.title} (#{@merge_request.to_reference}", "Merge Requests" - page_title "#{@merge_request.title} (#{@merge_request.to_reference}", "Merge Requests"
= render "header_title"
.merge-request .merge-request
= render "projects/merge_requests/show/mr_title" = render "projects/merge_requests/show/mr_title"
......
- page_title "New Merge Request" - page_title "New Merge Request"
= render "header_title"
- if @merge_request.can_be_created && !params[:change_branches] - if @merge_request.can_be_created && !params[:change_branches]
= render 'new_submit' = render 'new_submit'
......
- header_title project_title(@project, "Milestones", namespace_project_milestones_path(@project.namespace, @project))
- page_title "Edit", @milestone.title, "Milestones" - page_title "Edit", @milestone.title, "Milestones"
= render "header_title"
%h3.page-title %h3.page-title
Edit Milestone ##{@milestone.iid} Edit Milestone ##{@milestone.iid}
......
- page_title "Milestones" - page_title "Milestones"
= render "header_title"
.top-area .top-area
= render 'shared/milestones_filter' = render 'shared/milestones_filter'
......
- page_title "New Milestone" - page_title "New Milestone"
= render "header_title"
%h3.page-title %h3.page-title
New Milestone New Milestone
......
- page_title @milestone.title, "Milestones" - page_title @milestone.title, "Milestones"
- page_description @milestone.description - page_description @milestone.description
= render "header_title"
.detail-page-header .detail-page-header
.status-box{ class: status_box_class(@milestone) } .status-box{ class: status_box_class(@milestone) }
- if @milestone.closed? - if @milestone.closed?
......
- page_title "Network", @ref - page_title "Network", @ref
= render "projects/commits/header_title"
= render "projects/commits/head" = render "projects/commits/head"
= render "head" = render "head"
.project-network .project-network
......
- page_title 'New Project' - page_title 'New Project'
- header_title "Projects", root_path
%h3.page-title %h3.page-title
New Project New Project
......
- header_title project_title(@project, "Pipelines", project_pipelines_path(@project))
- page_title "Pipelines" - page_title "Pipelines"
= render "header_title"
.top-area .top-area
%ul.nav-links %ul.nav-links
......
- page_title "New Pipeline" - page_title "New Pipeline"
= render "header_title"
%h3.page-title %h3.page-title
New Pipeline New Pipeline
......
- page_title "Pipeline" - page_title "Pipeline"
= render "header_title"
.prepend-top-default .prepend-top-default
- if @commit - if @commit
= render "projects/pipelines/info" = render "projects/pipelines/info"
......
- header_title project_title(@project, "Members", namespace_project_project_members_path(@project.namespace, @project))
- page_title "Import members" - page_title "Import members"
= render "header_title"
%h3.page-title %h3.page-title
Import members from another project Import members from another project
......
- page_title "Members" - page_title "Members"
= render "header_title"
.project-members-page.prepend-top-default .project-members-page.prepend-top-default
- if can?(current_user, :admin_project_member, @project) - if can?(current_user, :admin_project_member, @project)
......
- page_title "Edit", @tag.name, "Tags" - page_title "Edit", @tag.name, "Tags"
= render "projects/commits/header_title"
= render "projects/commits/head" = render "projects/commits/head"
.row-content-block .row-content-block
......
- header_title project_title(@project, "Snippets", namespace_project_snippets_path(@project.namespace, @project))
- page_title "Edit", @snippet.title, "Snippets" - page_title "Edit", @snippet.title, "Snippets"
= render "header_title"
%h3.page-title %h3.page-title
Edit Snippet Edit Snippet
......
- page_title "Snippets" - page_title "Snippets"
= render "header_title"
.row-content-block.top-block .row-content-block.top-block
.pull-right .pull-right
......
- page_title "New Snippets" - page_title "New Snippets"
= render "header_title"
%h3.page-title %h3.page-title
New Snippet New Snippet
......
- page_title @snippet.title, "Snippets" - page_title @snippet.title, "Snippets"
= render "header_title"
.snippet-holder .snippet-holder
= render 'shared/snippets/header' = render 'shared/snippets/header'
......
- page_title "Tags" - page_title "Tags"
= render "projects/commits/header_title"
= render "projects/commits/head" = render "projects/commits/head"
.row-content-block .row-content-block
......
- page_title "New Tag" - page_title "New Tag"
= render "projects/commits/header_title"
- if @error - if @error
.alert.alert-danger .alert.alert-danger
......
- page_title @tag.name, "Tags" - page_title @tag.name, "Tags"
= render "projects/commits/header_title"
= render "projects/commits/head" = render "projects/commits/head"
.row-content-block .row-content-block
......
- page_title @path.presence || "Files", @ref - page_title @path.presence || "Files", @ref
- header_title project_title(@project, "Files", project_files_path(@project))
= content_for :meta_tags do = content_for :meta_tags do
- if current_user - if current_user
= auto_discovery_link_tag(:atom, namespace_project_commits_url(@project.namespace, @project, @ref, format: :atom, private_token: current_user.private_token), title: "#{@project.name}:#{@ref} commits") = auto_discovery_link_tag(:atom, namespace_project_commits_url(@project.namespace, @project, @ref, format: :atom, private_token: current_user.private_token), title: "#{@project.name}:#{@ref} commits")
......
- header_title project_title(@project, 'Wiki', get_project_wiki_path(@project))
- page_title "Edit", @page.title.capitalize, "Wiki" - page_title "Edit", @page.title.capitalize, "Wiki"
= render "header_title"
= render 'nav' = render 'nav'
.top-area .top-area
......
- page_title "Wiki" - page_title "Wiki"
= render "header_title"
%h3.page-title Empty page %h3.page-title Empty page
%hr %hr
......
- page_title "Git Access", "Wiki" - page_title "Git Access", "Wiki"
= render "header_title"
= render 'nav' = render 'nav'
.row-content-block .row-content-block
......
- page_title "History", @page.title.capitalize, "Wiki" - page_title "History", @page.title.capitalize, "Wiki"
= render "header_title"
= render 'nav' = render 'nav'
.top-area .top-area
......
- page_title "Pages", "Wiki" - page_title "Pages", "Wiki"
= render "header_title"
= render 'nav' = render 'nav'
......
- page_title @page.title.capitalize, "Wiki" - page_title @page.title.capitalize, "Wiki"
= render "header_title"
= render 'nav' = render 'nav'
.top-area .top-area
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment