Skip to content
Snippets Groups Projects
Commit 9fcc28d4 authored by Phil Hughes's avatar Phil Hughes
Browse files

moved declaration of `breadcrumb_title` into `page_title` method

`breadcrumb_title` is then overriden when needed
parent ab6c8935
No related branches found
No related tags found
No related merge requests found
Showing
with 8 additions and 17 deletions
Loading
Loading
@@ -4,6 +4,10 @@ module PageLayoutHelper
 
@page_title.push(*titles.compact) if titles.any?
 
if show_new_nav? && titles.any? && !defined?(@breadcrumb_title)
@breadcrumb_title = @page_title.first
end
# Segments are seperated by middot
@page_title.join(" \u00b7 ")
end
Loading
Loading
- @breadcrumb_title = "Appearance"
- page_title "Appearance"
 
%h3.page-title
Loading
Loading
- @breadcrumb_title = "Settings"
- page_title "Settings"
 
%h3.page-title Settings
Loading
Loading
- page_title "Edit", @application.name, "Applications"
- @breadcrumb_title = "Applications"
%h3.page-title Edit application
- @url = admin_application_path(@application)
= render 'form', application: @application
- page_title "New Application"
- @breadcrumb_title = "Applications"
%h3.page-title New application
- @url = admin_applications_path
= render 'form', application: @application
- @breadcrumb_title = "System Hooks"
- page_title 'System Hooks'
%h3.page-title
System hooks
Loading
Loading
- @breadcrumb_title = "Service Templates"
- page_title "Service Templates"
%h3.page-title Service templates
%p.light Service template allows you to set default values for project services
Loading
Loading
- @breadcrumb_title = "Activity"
- @hide_top_links = true
- @no_container = true
 
Loading
Loading
- @breadcrumb_title = "Issues"
- @hide_top_links = true
- page_title "Issues"
- header_title "Issues", issues_dashboard_path(assignee_id: current_user.id)
Loading
Loading
- @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)
Loading
Loading
- @no_container = true
- @hide_top_links = true
- @breadcrumb_title = "Projects"
 
= content_for :meta_tags do
= auto_discovery_link_tag(:atom, dashboard_projects_url(rss_url_options), title: "All activity")
Loading
Loading
- @breadcrumb_title = "Activity"
= content_for :meta_tags do
= auto_discovery_link_tag(:atom, group_url(@group, rss_url_options), title: "#{@group.name} activity")
 
Loading
Loading
- @breadcrumb_title = "Settings"
= render "groups/settings_head"
.panel.panel-default.prepend-top-default
.panel-heading
Loading
Loading
- @breadcrumb_title = "Members"
- page_title "Members"
 
.project-members-page.prepend-top-default
Loading
Loading
- @breadcrumb_title = "Issues"
- page_title "Issues"
- group_issues_exists = group_issues(@group).exists?
= render "head_issues"
Loading
Loading
- @breadcrumb_title = "Merge Requests"
- page_title "Merge Requests"
 
- if show_new_nav? && current_user
Loading
Loading
- @breadcrumb_title = "Account"
- page_title "Account"
- @content_class = "limit-container-width" unless fluid_layout
= render 'profiles/head'
Loading
Loading
- @breadcrumb_title = "Authentication log"
- page_title "Authentication log"
- @content_class = "limit-container-width" unless fluid_layout
= render 'profiles/head'
Loading
Loading
Loading
Loading
@@ -3,7 +3,6 @@
- add_to_breadcrumbs("Account", profile_account_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
 
= render 'profiles/head'
Loading
Loading
- @no_container = true
- @breadcrumb_title = "Activity"
 
- if show_new_nav?
- add_to_breadcrumbs("Project", project_path(@project))
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment