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
Boxiang Sun
gitlab-ce
Commits
f46888fd
Commit
f46888fd
authored
Sep 12, 2017
by
Phil Hughes
Committed by
Annabel Dunstone Gray
Sep 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed width of sub-group in breadcrumb dropdown
Closes #37745
parent
35273121
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/helpers/groups_helper.rb
app/helpers/groups_helper.rb
+3
-3
No files found.
app/helpers/groups_helper.rb
View file @
f46888fd
...
...
@@ -21,7 +21,7 @@ module GroupsHelper
group
.
ancestors
.
reverse
.
each_with_index
do
|
parent
,
index
|
if
index
>
0
add_to_breadcrumb_dropdown
(
group_title_link
(
parent
,
hidable:
false
,
show_avatar:
true
),
location: :before
)
add_to_breadcrumb_dropdown
(
group_title_link
(
parent
,
hidable:
false
,
show_avatar:
true
,
for_dropdown:
true
),
location: :before
)
else
full_title
+=
breadcrumb_list_item
group_title_link
(
parent
,
hidable:
false
)
end
...
...
@@ -85,8 +85,8 @@ module GroupsHelper
private
def
group_title_link
(
group
,
hidable:
false
,
show_avatar:
false
)
link_to
(
group_path
(
group
),
class:
"group-path
breadcrumb-item-text
js-breadcrumb-item-text
#{
'hidable'
if
hidable
}
"
)
do
def
group_title_link
(
group
,
hidable:
false
,
show_avatar:
false
,
for_dropdown:
false
)
link_to
(
group_path
(
group
),
class:
"group-path
#{
'breadcrumb-item-text'
unless
for_dropdown
}
js-breadcrumb-item-text
#{
'hidable'
if
hidable
}
"
)
do
output
=
if
(
group
.
try
(
:avatar_url
)
||
show_avatar
)
&&
!
Rails
.
env
.
test?
image_tag
(
group_icon
(
group
),
class:
"avatar-tile"
,
width:
15
,
height:
15
)
...
...
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