fixed breadcrumb titles

This commit is contained in:
Phil Hughes 2017-07-07 11:51:03 +01:00
parent e5183d907e
commit 15a2823879
24 changed files with 35 additions and 16 deletions

View File

@ -1,2 +1,3 @@
- @breadcrumb_title = "Service Templates"
- page_title @service.title, "Service Templates"
= render 'form'

View File

@ -1,3 +1,4 @@
- @breadcrumb_title = "Issues"
- @hide_top_links = true
- page_title "Issues"
- header_title "Issues", issues_dashboard_path(assignee_id: current_user.id)

View File

@ -1,3 +1,4 @@
- @breadcrumb_title = "Merge Requests"
- @hide_top_links = true
- page_title "Merge Requests"
- header_title "Merge Requests", merge_requests_dashboard_path(assignee_id: current_user.id)

View File

@ -1,3 +1,4 @@
- @hide_top_links = true
- page_title "Snippets"
- header_title "Snippets", snippets_path

View File

@ -1,3 +1,4 @@
- @breadcrumb_link = dashboard_groups_path
- @hide_top_links = true
- page_title 'New Group'
- header_title "Groups", dashboard_groups_path

View File

@ -13,7 +13,7 @@
= nav_link(controller: :dashboard, html_options: {class: 'home'}) do
= link_to admin_root_path, title: 'Overview' do
%span
Overview
Dashboard
= nav_link(controller: [:admin, :projects]) do
= link_to admin_projects_path, title: 'Projects' do
%span

View File

@ -1,3 +1,4 @@
- @breadcrumb_title = "Account"
- page_title "Account"
- @content_class = "limit-container-width" unless fluid_layout
= render 'profiles/head'

View File

@ -1,12 +1,11 @@
- page_title 'Two-Factor Authentication', 'Account'
- header_title "Two-Factor Authentication", profile_two_factor_auth_path
- if show_new_nav?
- breadcrumbs_extra_links("Account", profile_path)
- else
- header_title "Two-Factor Authentication", profile_two_factor_auth_path
- @breadcrumb_title = "Two-Factor Authentication"
- @content_class = "limit-container-width" unless fluid_layout
- if show_new_nav?
- content_for :header_title_before do
= link_to "User Settings", profile_path
= render 'profiles/head'
- if inject_u2f_api?

View File

@ -4,7 +4,7 @@
- page_title "Boards"
- if show_new_nav?
- breadcrumbs_extra_links("Issues", project_issues_path(@project.namespace))
- breadcrumbs_extra_links("Issues", project_issues_path(@project))
- content_for :page_specific_javascripts do
= webpack_bundle_tag 'common_vue'

View File

@ -3,7 +3,7 @@
= render "projects/commits/head"
- if show_new_nav?
- breadcrumbs_extra_links("Repository", project_files_path(@project))
- breadcrumbs_extra_links("Repository", project_tree_path(@project))
%div{ class: container_class }
.top-area.adjust

View File

@ -5,7 +5,7 @@
= auto_discovery_link_tag(:atom, project_commits_url(@project, @ref, rss_url_options), title: "#{@project.name}:#{@ref} commits")
- if show_new_nav?
- breadcrumbs_extra_links("Repository", project_files_path(@project))
- breadcrumbs_extra_links("Repository", project_tree_path(@project))
= content_for :sub_nav do
= render "head"

View File

@ -1,7 +1,7 @@
- @no_container = true
- page_title "Compare"
- if show_new_nav?
- breadcrumbs_extra_links("Repository", project_files_path(@project))
- breadcrumbs_extra_links("Repository", project_tree_path(@project))
= render "projects/commits/head"
%div{ class: container_class }

View File

@ -1,7 +1,7 @@
- @no_container = true
- page_title "#{params[:from]}...#{params[:to]}"
- if show_new_nav?
- breadcrumbs_extra_links("Repository", project_files_path(@project))
- breadcrumbs_extra_links("Repository", project_tree_path(@project))
= render "projects/commits/head"
%div{ class: container_class }

View File

@ -2,6 +2,9 @@
- page_title "Environments"
= render "projects/pipelines/head"
- if show_new_nav?
- breadcrumbs_extra_links("Pipelines", project_pipelines_path(@project))
- content_for :page_specific_javascripts do
= page_specific_javascript_bundle_tag('common_vue')
= page_specific_javascript_bundle_tag("environments")

View File

@ -2,7 +2,7 @@
- @breadcrumb_title = "Charts"
- page_title "Charts"
- if show_new_nav?
- breadcrumbs_extra_links("Repository", project_files_path(@project))
- breadcrumbs_extra_links("Repository", project_tree_path(@project))
- content_for :page_specific_javascripts do
= page_specific_javascript_bundle_tag('common_d3')
= page_specific_javascript_bundle_tag('graphs')

View File

@ -6,7 +6,7 @@
= page_specific_javascript_bundle_tag('graphs')
- if show_new_nav?
- breadcrumbs_extra_links("Repository", project_files_path(@project))
- breadcrumbs_extra_links("Repository", project_tree_path(@project))
= render 'projects/commits/head'

View File

@ -2,6 +2,9 @@
- page_title "Jobs"
= render "projects/pipelines/head"
- if show_new_nav?
- breadcrumbs_extra_links("Pipelines", project_pipelines_path(@project))
%div{ class: container_class }
.top-area
- build_path_proc = ->(scope) { project_jobs_path(@project, scope: scope) }

View File

@ -3,7 +3,7 @@
- content_for :page_specific_javascripts do
= page_specific_javascript_bundle_tag('network')
- if show_new_nav?
- breadcrumbs_extra_links("Repository", project_files_path(@project))
- breadcrumbs_extra_links("Repository", project_tree_path(@project))
= render "projects/commits/head"
= render "head"
%div{ class: container_class }

View File

@ -1,3 +1,4 @@
- @breadcrumb_link = dashboard_projects_path
- @hide_top_links = true
- page_title 'New Project'
- header_title "Projects", dashboard_projects_path

View File

@ -1,3 +1,8 @@
- @breadcrumb_title = "Integrations"
- page_title @service.title, "Services"
- if show_new_nav?
- breadcrumbs_extra_links("Settings", edit_project_path(@project))
= render "projects/settings/head"
= render 'form'

View File

@ -4,7 +4,7 @@
= render "projects/commits/head"
- if show_new_nav?
- breadcrumbs_extra_links("Repository", project_files_path(@project))
- breadcrumbs_extra_links("Repository", project_tree_path(@project))
.flex-list{ class: container_class }
.top-area.adjust

View File

@ -1,5 +1,5 @@
- @no_container = true
- @breadcrumb_title = _("Files")
- @breadcrumb_title = _("Repository")
- page_title @path.presence || _("Files"), @ref
= content_for :meta_tags do

View File

@ -1,3 +1,4 @@
- @hide_top_links = true
- page_title "New Snippet"
%h3.page-title
New Snippet

View File

@ -1,3 +1,4 @@
- @hide_top_links = true
- @content_class = "limit-container-width limited-inner-width-container" unless fluid_layout
- page_title "#{@snippet.title} (#{@snippet.to_reference})", "Snippets"