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:
parent
85495c8c85
commit
cdcb354f17
73 changed files with 3 additions and 78 deletions
|
@ -1,5 +1,4 @@
|
|||
- page_title "Activity"
|
||||
- header_title project_title(@project, "Activity", activity_project_path(@project))
|
||||
|
||||
= render 'projects/last_push'
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
- header_title project_title(@project, "Files", project_files_path(@project))
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Edit", @blob.path, @ref
|
||||
= render "header_title"
|
||||
|
||||
.file-editor
|
||||
%ul.nav-links.no-bottom.js-edit-mode
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "New File", @path.presence, @ref
|
||||
= render "header_title"
|
||||
|
||||
%h3.page-title
|
||||
New File
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title @blob.path, @ref
|
||||
= render "header_title"
|
||||
|
||||
= render 'projects/last_push'
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Branches"
|
||||
= render "projects/commits/header_title"
|
||||
= render "projects/commits/head"
|
||||
.row-content-block
|
||||
.pull-right
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "New Branch"
|
||||
= render "projects/commits/header_title"
|
||||
|
||||
- if @error
|
||||
.alert.alert-danger
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
- header_title project_title(@project, "Builds", project_builds_path(@project))
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Builds"
|
||||
= render "header_title"
|
||||
|
||||
.top-area
|
||||
%ul.nav-links
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "#{@build.name} (##{@build.id})", "Builds"
|
||||
= render "header_title"
|
||||
- trace_with_state = @build.trace_with_state
|
||||
|
||||
.build-page
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
- header_title project_title(@project, "Commits", project_commits_path(@project))
|
|
@ -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")
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Compare"
|
||||
= render "projects/commits/header_title"
|
||||
= render "projects/commits/head"
|
||||
|
||||
.row-content-block
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "#{params[:from]}...#{params[:to]}"
|
||||
= render "projects/commits/header_title"
|
||||
= render "projects/commits/head"
|
||||
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
- header_title project_title(@project, "Container Registry", project_container_registry_path(@project))
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Container Registry"
|
||||
= render "header_title"
|
||||
|
||||
%hr
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
- header_title project_title(@project, "Graphs", namespace_project_graph_path(@project.namespace, @project, current_ref))
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Continuous Integration", "Graphs"
|
||||
= render "header_title"
|
||||
= render 'head'
|
||||
.row-content-block.append-bottom-default
|
||||
.oneline
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Commits", "Graphs"
|
||||
= render "header_title"
|
||||
= render 'head'
|
||||
|
||||
.row-content-block.append-bottom-default
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Languages", "Graphs"
|
||||
= render "header_title"
|
||||
= render 'head'
|
||||
|
||||
.row-content-block.append-bottom-default
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Contributors", "Graphs"
|
||||
= render "header_title"
|
||||
= render 'head'
|
||||
|
||||
.row-content-block.append-bottom-default
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
- header_title project_title(@project, "Issues", namespace_project_issues_path(@project.namespace, @project))
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Edit", "#{@issue.title} (##{@issue.iid})", "Issues"
|
||||
= render "header_title"
|
||||
|
||||
%h3.page-title
|
||||
Edit Issue ##{@issue.iid}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Issues"
|
||||
= render "header_title"
|
||||
|
||||
= content_for :meta_tags do
|
||||
- if current_user
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "New Issue"
|
||||
= render "header_title"
|
||||
|
||||
%h3.page-title
|
||||
New Issue
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
- header_title project_title(@project, "Labels", namespace_project_labels_path(@project.namespace, @project))
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Edit", @label.name, "Labels"
|
||||
= render "header_title"
|
||||
|
||||
%h3.page-title
|
||||
Edit Label
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Labels"
|
||||
= render "header_title"
|
||||
|
||||
.top-area
|
||||
.nav-text
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "New Label"
|
||||
= render "header_title"
|
||||
|
||||
%h3.page-title
|
||||
New Label
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
- header_title project_title(@project, "Merge Requests", namespace_project_merge_requests_path(@project.namespace, @project))
|
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Merge Requests"
|
||||
= render "header_title"
|
||||
|
||||
= render 'projects/last_push'
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "New Merge Request"
|
||||
= render "header_title"
|
||||
|
||||
- if @merge_request.can_be_created && !params[:change_branches]
|
||||
= render 'new_submit'
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
- header_title project_title(@project, "Milestones", namespace_project_milestones_path(@project.namespace, @project))
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Edit", @milestone.title, "Milestones"
|
||||
= render "header_title"
|
||||
|
||||
%h3.page-title
|
||||
Edit Milestone ##{@milestone.iid}
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
- page_title "Milestones"
|
||||
= render "header_title"
|
||||
|
||||
|
||||
.top-area
|
||||
= render 'shared/milestones_filter'
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "New Milestone"
|
||||
= render "header_title"
|
||||
|
||||
%h3.page-title
|
||||
New Milestone
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Network", @ref
|
||||
= render "projects/commits/header_title"
|
||||
= render "projects/commits/head"
|
||||
= render "head"
|
||||
.project-network
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title 'New Project'
|
||||
- header_title "Projects", root_path
|
||||
|
||||
%h3.page-title
|
||||
New Project
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
- header_title project_title(@project, "Pipelines", project_pipelines_path(@project))
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Pipelines"
|
||||
= render "header_title"
|
||||
|
||||
.top-area
|
||||
%ul.nav-links
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "New Pipeline"
|
||||
= render "header_title"
|
||||
|
||||
%h3.page-title
|
||||
New Pipeline
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
- page_title "Pipeline"
|
||||
|
||||
= render "header_title"
|
||||
.prepend-top-default
|
||||
- if @commit
|
||||
= render "projects/pipelines/info"
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
- header_title project_title(@project, "Members", namespace_project_project_members_path(@project.namespace, @project))
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Import members"
|
||||
= render "header_title"
|
||||
|
||||
%h3.page-title
|
||||
Import members from another project
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Members"
|
||||
= render "header_title"
|
||||
|
||||
.project-members-page.prepend-top-default
|
||||
- if can?(current_user, :admin_project_member, @project)
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Edit", @tag.name, "Tags"
|
||||
= render "projects/commits/header_title"
|
||||
= render "projects/commits/head"
|
||||
|
||||
.row-content-block
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
- header_title project_title(@project, "Snippets", namespace_project_snippets_path(@project.namespace, @project))
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Edit", @snippet.title, "Snippets"
|
||||
= render "header_title"
|
||||
|
||||
%h3.page-title
|
||||
Edit Snippet
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Snippets"
|
||||
= render "header_title"
|
||||
|
||||
.row-content-block.top-block
|
||||
.pull-right
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "New Snippets"
|
||||
= render "header_title"
|
||||
|
||||
%h3.page-title
|
||||
New Snippet
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title @snippet.title, "Snippets"
|
||||
= render "header_title"
|
||||
|
||||
.snippet-holder
|
||||
= render 'shared/snippets/header'
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Tags"
|
||||
= render "projects/commits/header_title"
|
||||
= render "projects/commits/head"
|
||||
|
||||
.row-content-block
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "New Tag"
|
||||
= render "projects/commits/header_title"
|
||||
|
||||
- if @error
|
||||
.alert.alert-danger
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title @tag.name, "Tags"
|
||||
= render "projects/commits/header_title"
|
||||
= render "projects/commits/head"
|
||||
|
||||
.row-content-block
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
- header_title project_title(@project, 'Wiki', get_project_wiki_path(@project))
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Edit", @page.title.capitalize, "Wiki"
|
||||
= render "header_title"
|
||||
= render 'nav'
|
||||
|
||||
.top-area
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Wiki"
|
||||
= render "header_title"
|
||||
|
||||
%h3.page-title Empty page
|
||||
%hr
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Git Access", "Wiki"
|
||||
= render "header_title"
|
||||
|
||||
= render 'nav'
|
||||
.row-content-block
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "History", @page.title.capitalize, "Wiki"
|
||||
= render "header_title"
|
||||
= render 'nav'
|
||||
|
||||
.top-area
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title "Pages", "Wiki"
|
||||
= render "header_title"
|
||||
|
||||
= render 'nav'
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
- page_title @page.title.capitalize, "Wiki"
|
||||
= render "header_title"
|
||||
= render 'nav'
|
||||
|
||||
.top-area
|
||||
|
|
Loading…
Reference in a new issue