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
Jérome Perrin
gitlab-ce
Commits
a7e30d65
Commit
a7e30d65
authored
Apr 09, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add .breadcrumb-item for breadcrumb > li
parent
66d3894d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
13 deletions
+13
-13
app/helpers/commits_helper.rb
app/helpers/commits_helper.rb
+2
-2
app/views/projects/artifacts/file.html.haml
app/views/projects/artifacts/file.html.haml
+2
-2
app/views/projects/blob/_breadcrumb.html.haml
app/views/projects/blob/_breadcrumb.html.haml
+2
-2
app/views/projects/find_file/show.html.haml
app/views/projects/find_file/show.html.haml
+2
-2
app/views/projects/tree/_tree_header.html.haml
app/views/projects/tree/_tree_header.html.haml
+3
-3
app/views/snippets/index.html.haml
app/views/snippets/index.html.haml
+2
-2
No files found.
app/helpers/commits_helper.rb
View file @
a7e30d65
...
...
@@ -27,7 +27,7 @@ module CommitsHelper
return
unless
@project
&&
@ref
# Add the root project link and the arrow icon
crumbs
=
content_tag
(
:li
)
do
crumbs
=
content_tag
(
:li
,
class:
'breadcrumb-item'
)
do
link_to
(
@project
.
path
,
project_commits_path
(
@project
,
@ref
)
...
...
@@ -38,7 +38,7 @@ module CommitsHelper
parts
=
@path
.
split
(
'/'
)
parts
.
each_with_index
do
|
part
,
i
|
crumbs
<<
content_tag
(
:li
)
do
crumbs
<<
content_tag
(
:li
,
class:
'breadcrumb-item'
)
do
# The text is just the individual part, but the link needs all the parts before it
link_to
(
part
,
...
...
app/views/projects/artifacts/file.html.haml
View file @
a7e30d65
...
...
@@ -5,11 +5,11 @@
.tree-holder
.nav-block
%ul
.breadcrumb.repo-breadcrumb
%li
%li
.breadcrumb-item
=
link_to
'Artifacts'
,
browse_project_job_artifacts_path
(
@project
,
@build
)
-
path_breadcrumbs
do
|
title
,
path
|
-
title
=
truncate
(
title
,
length:
40
)
%li
%li
.breadcrumb-item
-
if
path
==
@path
=
link_to
file_project_job_artifacts_path
(
@project
,
@build
,
path
)
do
%strong
=
title
...
...
app/views/projects/blob/_breadcrumb.html.haml
View file @
a7e30d65
...
...
@@ -5,12 +5,12 @@
=
render
'shared/ref_switcher'
,
destination:
'blob'
,
path:
@path
%ul
.breadcrumb.repo-breadcrumb
%li
%li
.breadcrumb-item
=
link_to
project_tree_path
(
@project
,
@ref
)
do
=
@project
.
path
-
path_breadcrumbs
do
|
title
,
path
|
-
title
=
truncate
(
title
,
length:
40
)
%li
%li
.breadcrumb-item
-
if
path
==
@path
=
link_to
project_blob_path
(
@project
,
tree_join
(
@ref
,
path
))
do
%strong
=
title
...
...
app/views/projects/find_file/show.html.haml
View file @
a7e30d65
...
...
@@ -5,10 +5,10 @@
.tree-ref-holder
=
render
'shared/ref_switcher'
,
destination:
'find_file'
,
path:
@path
%ul
.breadcrumb.repo-breadcrumb
%li
%li
.breadcrumb-item
=
link_to
project_tree_path
(
@project
,
@ref
)
do
=
@project
.
path
%li
.file-finder
%li
.file-finder
.breadcrumb-item
%input
#file_find
.form-control.file-finder-input
{
type:
"text"
,
placeholder:
_
(
'Find by path'
),
autocomplete:
'off'
}
.tree-content-holder
...
...
app/views/projects/tree/_tree_header.html.haml
View file @
a7e30d65
...
...
@@ -8,15 +8,15 @@
-
addtotree_toggle_attributes
=
{
title:
_
(
"You can only add files when you are on a branch"
),
data:
{
container:
'body'
},
class:
'disabled has-tooltip'
}
%ul
.breadcrumb.repo-breadcrumb
%li
%li
.breadcrumb-item
=
link_to
project_tree_path
(
@project
,
@ref
)
do
=
@project
.
path
-
path_breadcrumbs
do
|
title
,
path
|
%li
%li
.breadcrumb-item
=
link_to
truncate
(
title
,
length:
40
),
project_tree_path
(
@project
,
tree_join
(
@ref
,
path
))
-
if
current_user
%li
%li
.breadcrumb-item
%a
.btn.add-to-tree
{
addtotree_toggle_attributes
}
=
sprite_icon
(
'plus'
,
size:
16
,
css_class:
'pull-left'
)
=
sprite_icon
(
'arrow-down'
,
size:
16
,
css_class:
'pull-left'
)
...
...
app/views/snippets/index.html.haml
View file @
a7e30d65
-
page_title
"By
#{
@user
.
name
}
"
,
"Snippets"
%ol
.breadcrumb
%li
%li
.breadcrumb-item
=
link_to
snippets_path
do
Snippets
%li
%li
.breadcrumb-item
=
@user
.
name
.pull-right.hidden-xs
=
link_to
user_path
(
@user
)
do
...
...
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