Remove header title from project pages

With new navigation design it makes no sense to duplicate title in the
header

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2016-05-26 17:58:44 +02:00
parent 85495c8c85
commit cdcb354f17
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
73 changed files with 3 additions and 78 deletions

View file

@ -1,5 +1,4 @@
- page_title "Activity"
- header_title project_title(@project, "Activity", activity_project_path(@project))
= render 'projects/last_push'

View file

@ -1,5 +1,4 @@
- page_title 'Artifacts', "#{@build.name} (##{@build.id})", 'Builds'
= render 'projects/builds/header_title'
.top-block.row-content-block.clearfix
.pull-right

View file

@ -1,6 +1,5 @@
- page_title 'Badges'
- badges_path = namespace_project_badges_path(@project.namespace, @project)
- header_title project_title(@project, 'Badges', badges_path)
.prepend-top-10
.panel.panel-default

View file

@ -1,5 +1,4 @@
- page_title "Blame", @blob.path, @ref
- header_title project_title(@project, "Files", project_files_path(@project))
%h3.page-title Blame view

View file

@ -1 +0,0 @@
- header_title project_title(@project, "Files", project_files_path(@project))

View file

@ -1,5 +1,4 @@
- page_title "Edit", @blob.path, @ref
= render "header_title"
.file-editor
%ul.nav-links.no-bottom.js-edit-mode

View file

@ -1,5 +1,4 @@
- page_title "New File", @path.presence, @ref
= render "header_title"
%h3.page-title
New File

View file

@ -1,5 +1,4 @@
- page_title @blob.path, @ref
= render "header_title"
= render 'projects/last_push'

View file

@ -1,5 +1,4 @@
- page_title "Branches"
= render "projects/commits/header_title"
= render "projects/commits/head"
.row-content-block
.pull-right

View file

@ -1,5 +1,4 @@
- page_title "New Branch"
= render "projects/commits/header_title"
- if @error
.alert.alert-danger

View file

@ -1 +0,0 @@
- header_title project_title(@project, "Builds", project_builds_path(@project))

View file

@ -1,5 +1,4 @@
- page_title "Builds"
= render "header_title"
.top-area
%ul.nav-links

View file

@ -1,5 +1,4 @@
- page_title "#{@build.name} (##{@build.id})", "Builds"
= render "header_title"
- trace_with_state = @build.trace_with_state
.build-page

View file

@ -1,7 +1,7 @@
- page_title "Builds", "#{@commit.title} (#{@commit.short_id})", "Commits"
= render "projects/commits/header_title"
.prepend-top-default
= render "commit_box"
= render "ci_menu"
= render "ci_menu"
= render "builds"

View file

@ -1,8 +1,6 @@
- page_title "#{@commit.title} (#{@commit.short_id})", "Commits"
- page_description @commit.description
= render "projects/commits/header_title"
.prepend-top-default
= render "commit_box"
- if @commit.status

View file

@ -1 +0,0 @@
- header_title project_title(@project, "Commits", project_commits_path(@project))

View file

@ -1,5 +1,4 @@
- page_title "Commits", @ref
= render "header_title"
= content_for :meta_tags do
- 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")

View file

@ -1,5 +1,4 @@
- page_title "Compare"
= render "projects/commits/header_title"
= render "projects/commits/head"
.row-content-block

View file

@ -1,5 +1,4 @@
- page_title "#{params[:from]}...#{params[:to]}"
= render "projects/commits/header_title"
= render "projects/commits/head"

View file

@ -1 +0,0 @@
- header_title project_title(@project, "Container Registry", project_container_registry_path(@project))

View file

@ -1,5 +1,4 @@
- page_title "Container Registry"
= render "header_title"
%hr

View file

@ -1,5 +1,4 @@
- page_title "Find File", @ref
- header_title project_title(@project, "Files", project_files_path(@project))
.file-finder-holder.tree-holder.clearfix
.nav-block

View file

@ -1 +0,0 @@
- header_title project_title(@project, "Graphs", namespace_project_graph_path(@project.namespace, @project, current_ref))

View file

@ -1,5 +1,4 @@
- page_title "Continuous Integration", "Graphs"
= render "header_title"
= render 'head'
.row-content-block.append-bottom-default
.oneline

View file

@ -1,5 +1,4 @@
- page_title "Commits", "Graphs"
= render "header_title"
= render 'head'
.row-content-block.append-bottom-default

View file

@ -1,5 +1,4 @@
- page_title "Languages", "Graphs"
= render "header_title"
= render 'head'
.row-content-block.append-bottom-default

View file

@ -1,5 +1,4 @@
- page_title "Contributors", "Graphs"
= render "header_title"
= render 'head'
.row-content-block.append-bottom-default

View file

@ -1 +0,0 @@
- header_title project_title(@project, "Issues", namespace_project_issues_path(@project.namespace, @project))

View file

@ -1,5 +1,4 @@
- page_title "Edit", "#{@issue.title} (##{@issue.iid})", "Issues"
= render "header_title"
%h3.page-title
Edit Issue ##{@issue.iid}

View file

@ -1,5 +1,4 @@
- page_title "Issues"
= render "header_title"
= content_for :meta_tags do
- if current_user

View file

@ -1,5 +1,4 @@
- page_title "New Issue"
= render "header_title"
%h3.page-title
New Issue

View file

@ -1,7 +1,6 @@
- page_title "#{@issue.title} (##{@issue.iid})", "Issues"
- page_description @issue.description
- page_card_attributes @issue.card_attributes
- header_title project_title(@project, "Issues", namespace_project_issues_path(@project.namespace, @project))
.clearfix.detail-page-header
.issuable-header

View file

@ -1 +0,0 @@
- header_title project_title(@project, "Labels", namespace_project_labels_path(@project.namespace, @project))

View file

@ -1,5 +1,4 @@
- page_title "Edit", @label.name, "Labels"
= render "header_title"
%h3.page-title
Edit Label

View file

@ -1,5 +1,4 @@
- page_title "Labels"
= render "header_title"
.top-area
.nav-text

View file

@ -1,5 +1,4 @@
- page_title "New Label"
= render "header_title"
%h3.page-title
New Label

View file

@ -1 +0,0 @@
- header_title project_title(@project, "Merge Requests", namespace_project_merge_requests_path(@project.namespace, @project))

View file

@ -1,7 +1,6 @@
- page_title "#{@merge_request.title} (#{@merge_request.to_reference})", "Merge Requests"
- page_description @merge_request.description
- 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'
- fluid_layout true

View file

@ -1,5 +1,4 @@
- page_title "Edit", "#{@merge_request.title} (#{@merge_request.to_reference}", "Merge Requests"
= render "header_title"
%h3.page-title
Edit Merge Request #{@merge_request.to_reference}

View file

@ -1,5 +1,4 @@
- page_title "Merge Requests"
= render "header_title"
= render 'projects/last_push'

View file

@ -1,5 +1,4 @@
- page_title "#{@merge_request.title} (#{@merge_request.to_reference}", "Merge Requests"
= render "header_title"
.merge-request
= render "projects/merge_requests/show/mr_title"

View file

@ -1,5 +1,4 @@
- page_title "New Merge Request"
= render "header_title"
- if @merge_request.can_be_created && !params[:change_branches]
= render 'new_submit'

View file

@ -1 +0,0 @@
- header_title project_title(@project, "Milestones", namespace_project_milestones_path(@project.namespace, @project))

View file

@ -1,5 +1,4 @@
- page_title "Edit", @milestone.title, "Milestones"
= render "header_title"
%h3.page-title
Edit Milestone ##{@milestone.iid}

View file

@ -1,6 +1,4 @@
- page_title "Milestones"
= render "header_title"
.top-area
= render 'shared/milestones_filter'

View file

@ -1,5 +1,4 @@
- page_title "New Milestone"
= render "header_title"
%h3.page-title
New Milestone

View file

@ -1,8 +1,6 @@
- page_title @milestone.title, "Milestones"
- page_description @milestone.description
= render "header_title"
.detail-page-header
.status-box{ class: status_box_class(@milestone) }
- if @milestone.closed?

View file

@ -1,5 +1,4 @@
- page_title "Network", @ref
= render "projects/commits/header_title"
= render "projects/commits/head"
= render "head"
.project-network

View file

@ -1,5 +1,4 @@
- page_title 'New Project'
- header_title "Projects", root_path
%h3.page-title
New Project

View file

@ -1 +0,0 @@
- header_title project_title(@project, "Pipelines", project_pipelines_path(@project))

View file

@ -1,5 +1,4 @@
- page_title "Pipelines"
= render "header_title"
.top-area
%ul.nav-links

View file

@ -1,5 +1,4 @@
- page_title "New Pipeline"
= render "header_title"
%h3.page-title
New Pipeline

View file

@ -1,6 +1,5 @@
- page_title "Pipeline"
= render "header_title"
.prepend-top-default
- if @commit
= render "projects/pipelines/info"

View file

@ -1 +0,0 @@
- header_title project_title(@project, "Members", namespace_project_project_members_path(@project.namespace, @project))

View file

@ -1,5 +1,4 @@
- page_title "Import members"
= render "header_title"
%h3.page-title
Import members from another project

View file

@ -1,5 +1,4 @@
- page_title "Members"
= render "header_title"
.project-members-page.prepend-top-default
- if can?(current_user, :admin_project_member, @project)

View file

@ -1,5 +1,4 @@
- page_title "Edit", @tag.name, "Tags"
= render "projects/commits/header_title"
= render "projects/commits/head"
.row-content-block

View file

@ -1 +0,0 @@
- header_title project_title(@project, "Snippets", namespace_project_snippets_path(@project.namespace, @project))

View file

@ -1,5 +1,4 @@
- page_title "Edit", @snippet.title, "Snippets"
= render "header_title"
%h3.page-title
Edit Snippet

View file

@ -1,5 +1,4 @@
- page_title "Snippets"
= render "header_title"
.row-content-block.top-block
.pull-right

View file

@ -1,5 +1,4 @@
- page_title "New Snippets"
= render "header_title"
%h3.page-title
New Snippet

View file

@ -1,5 +1,4 @@
- page_title @snippet.title, "Snippets"
= render "header_title"
.snippet-holder
= render 'shared/snippets/header'

View file

@ -1,5 +1,4 @@
- page_title "Tags"
= render "projects/commits/header_title"
= render "projects/commits/head"
.row-content-block

View file

@ -1,5 +1,4 @@
- page_title "New Tag"
= render "projects/commits/header_title"
- if @error
.alert.alert-danger

View file

@ -1,5 +1,4 @@
- page_title @tag.name, "Tags"
= render "projects/commits/header_title"
= render "projects/commits/head"
.row-content-block

View file

@ -1,5 +1,4 @@
- page_title @path.presence || "Files", @ref
- header_title project_title(@project, "Files", project_files_path(@project))
= content_for :meta_tags do
- 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")

View file

@ -1 +0,0 @@
- header_title project_title(@project, 'Wiki', get_project_wiki_path(@project))

View file

@ -1,5 +1,4 @@
- page_title "Edit", @page.title.capitalize, "Wiki"
= render "header_title"
= render 'nav'
.top-area

View file

@ -1,5 +1,4 @@
- page_title "Wiki"
= render "header_title"
%h3.page-title Empty page
%hr

View file

@ -1,5 +1,4 @@
- page_title "Git Access", "Wiki"
= render "header_title"
= render 'nav'
.row-content-block

View file

@ -1,5 +1,4 @@
- page_title "History", @page.title.capitalize, "Wiki"
= render "header_title"
= render 'nav'
.top-area

View file

@ -1,5 +1,4 @@
- page_title "Pages", "Wiki"
= render "header_title"
= render 'nav'

View file

@ -1,5 +1,4 @@
- page_title @page.title.capitalize, "Wiki"
= render "header_title"
= render 'nav'
.top-area