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
91c215f9
Commit
91c215f9
authored
Aug 31, 2016
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make projects dropdown accessible
parent
1c4e8663
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
app/assets/stylesheets/framework/header.scss
app/assets/stylesheets/framework/header.scss
+4
-0
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+3
-1
No files found.
app/assets/stylesheets/framework/header.scss
View file @
91c215f9
...
@@ -160,11 +160,15 @@ header {
...
@@ -160,11 +160,15 @@ header {
}
}
.dropdown-toggle-caret
{
.dropdown-toggle-caret
{
color
:
$gl-text-color
;
border
:
transparent
;
background
:
transparent
;
position
:
relative
;
position
:
relative
;
top
:
-2px
;
top
:
-2px
;
width
:
12px
;
width
:
12px
;
line-height
:
12px
;
line-height
:
12px
;
margin-left
:
5px
;
margin-left
:
5px
;
padding
:
0
;
font-size
:
10px
;
font-size
:
10px
;
text-align
:
center
;
text-align
:
center
;
cursor
:
pointer
;
cursor
:
pointer
;
...
...
app/helpers/projects_helper.rb
View file @
91c215f9
...
@@ -61,7 +61,9 @@ module ProjectsHelper
...
@@ -61,7 +61,9 @@ module ProjectsHelper
project_link
=
link_to
simple_sanitize
(
project
.
name
),
project_path
(
project
),
{
class:
"project-item-select-holder"
}
project_link
=
link_to
simple_sanitize
(
project
.
name
),
project_path
(
project
),
{
class:
"project-item-select-holder"
}
if
current_user
if
current_user
project_link
<<
icon
(
"chevron-down"
,
class:
"dropdown-toggle-caret js-projects-dropdown-toggle"
,
aria:
{
label:
"Toggle switch project dropdown"
},
data:
{
target:
".js-dropdown-menu-projects"
,
toggle:
"dropdown"
})
project_link
<<
button_tag
(
type:
'button'
,
class:
"dropdown-toggle-caret js-projects-dropdown-toggle"
,
aria:
{
label:
"Toggle switch project dropdown"
},
data:
{
target:
".js-dropdown-menu-projects"
,
toggle:
"dropdown"
})
do
icon
(
"chevron-down"
)
end
end
end
full_title
=
"
#{
namespace_link
}
/
#{
project_link
}
"
.
html_safe
full_title
=
"
#{
namespace_link
}
/
#{
project_link
}
"
.
html_safe
...
...
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