Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
13cc761a
Commit
13cc761a
authored
Jul 12, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved `@breadcrumb_title` out of the HAML & into a helper method
parent
9fcc28d4
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
29 additions
and
20 deletions
+29
-20
app/helpers/breadcrumbs_helper.rb
app/helpers/breadcrumbs_helper.rb
+6
-0
app/helpers/page_layout_helper.rb
app/helpers/page_layout_helper.rb
+1
-1
app/views/admin/applications/edit.html.haml
app/views/admin/applications/edit.html.haml
+1
-1
app/views/admin/applications/new.html.haml
app/views/admin/applications/new.html.haml
+1
-1
app/views/admin/broadcast_messages/edit.html.haml
app/views/admin/broadcast_messages/edit.html.haml
+1
-1
app/views/admin/broadcast_messages/index.html.haml
app/views/admin/broadcast_messages/index.html.haml
+1
-1
app/views/admin/services/edit.html.haml
app/views/admin/services/edit.html.haml
+1
-1
app/views/groups/new.html.haml
app/views/groups/new.html.haml
+1
-0
app/views/groups/show.html.haml
app/views/groups/show.html.haml
+1
-1
app/views/layouts/nav/_breadcrumbs.html.haml
app/views/layouts/nav/_breadcrumbs.html.haml
+1
-2
app/views/profiles/show.html.haml
app/views/profiles/show.html.haml
+1
-1
app/views/projects/blob/edit.html.haml
app/views/projects/blob/edit.html.haml
+1
-1
app/views/projects/blob/new.html.haml
app/views/projects/blob/new.html.haml
+1
-1
app/views/projects/blob/show.html.haml
app/views/projects/blob/show.html.haml
+1
-1
app/views/projects/issues/new.html.haml
app/views/projects/issues/new.html.haml
+1
-0
app/views/projects/merge_requests/creations/new.html.haml
app/views/projects/merge_requests/creations/new.html.haml
+1
-1
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+1
-0
app/views/projects/pipeline_schedules/index.html.haml
app/views/projects/pipeline_schedules/index.html.haml
+1
-1
app/views/projects/pipeline_schedules/new.html.haml
app/views/projects/pipeline_schedules/new.html.haml
+1
-1
app/views/projects/services/edit.html.haml
app/views/projects/services/edit.html.haml
+1
-1
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+1
-1
app/views/projects/tree/show.html.haml
app/views/projects/tree/show.html.haml
+1
-1
app/views/projects/wikis/show.html.haml
app/views/projects/wikis/show.html.haml
+1
-1
app/views/snippets/new.html.haml
app/views/snippets/new.html.haml
+1
-0
No files found.
app/helpers/breadcrumbs_helper.rb
View file @
13cc761a
...
...
@@ -16,4 +16,10 @@ module BreadcrumbsHelper
request
.
path
end
end
def
breadcrumb_title
(
title
)
return
if
defined?
(
@breadcrumb_title
)
@breadcrumb_title
=
title
end
end
app/helpers/page_layout_helper.rb
View file @
13cc761a
...
...
@@ -5,7 +5,7 @@ module PageLayoutHelper
@page_title
.
push
(
*
titles
.
compact
)
if
titles
.
any?
if
show_new_nav?
&&
titles
.
any?
&&
!
defined?
(
@breadcrumb_title
)
@breadcrumb_title
=
@page_title
.
first
@breadcrumb_title
=
@page_title
[
-
1
]
end
# Segments are seperated by middot
...
...
app/views/admin/applications/edit.html.haml
View file @
13cc761a
-
page_title
"Edit"
,
@application
.
name
,
"Applications"
-
@breadcrumb_title
=
"Applications"
-
breadcrumb_title
"Applications"
%h3
.page-title
Edit application
-
@url
=
admin_application_path
(
@application
)
...
...
app/views/admin/applications/new.html.haml
View file @
13cc761a
-
page_title
"New Application"
-
@breadcrumb_title
=
"Applications"
-
breadcrumb_title
"Applications"
%h3
.page-title
New application
-
@url
=
admin_applications_path
...
...
app/views/admin/broadcast_messages/edit.html.haml
View file @
13cc761a
-
@breadcrumb_title
=
"Messages"
-
breadcrumb_title
"Messages"
-
page_title
"Broadcast Messages"
=
render
'form'
app/views/admin/broadcast_messages/index.html.haml
View file @
13cc761a
-
@breadcrumb_title
=
"Messages"
-
breadcrumb_title
"Messages"
-
page_title
"Broadcast Messages"
%h3
.page-title
...
...
app/views/admin/services/edit.html.haml
View file @
13cc761a
-
@breadcrumb_title
=
"Service Templates"
-
breadcrumb_title
"Service Templates"
-
page_title
@service
.
title
,
"Service Templates"
=
render
'form'
app/views/groups/new.html.haml
View file @
13cc761a
-
@breadcrumb_link
=
dashboard_groups_path
-
breadcrumb_title
"Groups"
-
@hide_top_links
=
true
-
page_title
'New Group'
-
header_title
"Groups"
,
dashboard_groups_path
...
...
app/views/groups/show.html.haml
View file @
13cc761a
-
@no_container
=
true
-
@breadcrumb_title
=
"Group"
-
breadcrumb_title
"Group"
=
content_for
:meta_tags
do
=
auto_discovery_link_tag
(
:atom
,
group_url
(
@group
,
rss_url_options
),
title:
"
#{
@group
.
name
}
activity"
)
...
...
app/views/layouts/nav/_breadcrumbs.html.haml
View file @
13cc761a
-
breadcrumb_title
=
@breadcrumb_title
||
controller
.
controller_name
.
humanize
-
breadcrumb_link
=
breadcrumb_title_link
-
hide_top_links
=
@hide_top_links
||
false
...
...
@@ -18,7 +17,7 @@
-
if
@breadcrumbs_extra_links
-
@breadcrumbs_extra_links
.
each
do
|
extra
|
%li
=
link_to
extra
[
:text
],
extra
[
:link
]
%li
=
link_to
breadcrumb_title
,
breadcrumb_link
%li
=
link_to
@
breadcrumb_title
,
breadcrumb_link
-
if
content_for?
(
:breadcrumbs_extra
)
.breadcrumbs-extra.hidden-xs
=
yield
:breadcrumbs_extra
=
yield
:header_content
app/views/profiles/show.html.haml
View file @
13cc761a
-
@breadcrumb_title
=
"Profile"
-
breadcrumb_title
"Profile"
-
@content_class
=
"limit-container-width"
unless
fluid_layout
=
render
'profiles/head'
...
...
app/views/projects/blob/edit.html.haml
View file @
13cc761a
-
@breadcrumb_title
=
"Repository"
-
breadcrumb_title
"Repository"
-
@no_container
=
true
-
page_title
"Edit"
,
@blob
.
path
,
@ref
-
content_for
:page_specific_javascripts
do
...
...
app/views/projects/blob/new.html.haml
View file @
13cc761a
-
@breadcrumb_title
=
"Repository"
-
breadcrumb_title
"Repository"
-
page_title
"New File"
,
@path
.
presence
,
@ref
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_tag
(
'lib/ace.js'
)
...
...
app/views/projects/blob/show.html.haml
View file @
13cc761a
-
@breadcrumb_title
=
"Repository"
-
breadcrumb_title
"Repository"
-
@no_container
=
true
-
page_title
@blob
.
path
,
@ref
...
...
app/views/projects/issues/new.html.haml
View file @
13cc761a
-
breadcrumb_title
"Issues"
-
page_title
"New Issue"
%h3
.page-title
...
...
app/views/projects/merge_requests/creations/new.html.haml
View file @
13cc761a
-
@breadcrumb_title
=
"Merge Requests"
-
breadcrumb_title
"Merge Requests"
-
page_title
"New Merge Request"
-
if
@merge_request
.
can_be_created
&&
!
params
[
:change_branches
]
...
...
app/views/projects/new.html.haml
View file @
13cc761a
-
@breadcrumb_link
=
dashboard_projects_path
-
breadcrumb_title
"Projects"
-
@hide_top_links
=
true
-
page_title
'New Project'
-
header_title
"Projects"
,
dashboard_projects_path
...
...
app/views/projects/pipeline_schedules/index.html.haml
View file @
13cc761a
-
@breadcrumb_title
=
"Schedules"
-
breadcrumb_title
"Schedules"
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'common_vue'
...
...
app/views/projects/pipeline_schedules/new.html.haml
View file @
13cc761a
-
@breadcrumb_title
=
"Schedules"
-
breadcrumb_title
"Schedules"
-
@breadcrumb_link
=
namespace_project_pipeline_schedules_path
(
@project
.
namespace
,
@project
)
-
page_title
_
(
"New Pipeline Schedule"
)
...
...
app/views/projects/services/edit.html.haml
View file @
13cc761a
-
@breadcrumb_title
=
"Integrations"
-
breadcrumb_title
"Integrations"
-
page_title
@service
.
title
,
"Services"
-
if
show_new_nav?
...
...
app/views/projects/show.html.haml
View file @
13cc761a
-
@no_container
=
true
-
@breadcrumb_title
=
"Project"
-
breadcrumb_title
"Project"
-
@content_class
=
"limit-container-width"
unless
fluid_layout
-
flash_message_container
=
show_new_nav?
?
:new_global_flash
:
:flash_message
...
...
app/views/projects/tree/show.html.haml
View file @
13cc761a
-
@no_container
=
true
-
@breadcrumb_title
=
_
(
"Repository"
)
-
breadcrumb_title
_
(
"Repository"
)
-
@content_class
=
"limit-container-width"
unless
fluid_layout
-
page_title
@path
.
presence
||
_
(
"Files"
),
@ref
...
...
app/views/projects/wikis/show.html.haml
View file @
13cc761a
-
@content_class
=
"limit-container-width limit-container-width-sm"
unless
fluid_layout
-
@breadcrumb_title
=
"Wiki"
-
breadcrumb_title
"Wiki"
-
page_title
@page
.
title
.
capitalize
,
"Wiki"
.wiki-page-header.has-sidebar-toggle
...
...
app/views/snippets/new.html.haml
View file @
13cc761a
-
@hide_top_links
=
true
-
breadcrumb_title
"Snippets"
-
page_title
"New Snippet"
%h3
.page-title
New Snippet
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment