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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
735ab933
Commit
735ab933
authored
Mar 23, 2017
by
Kushal Pandya
Committed by
Alfredo Sumaran
Mar 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `aria-label` for feature status accessibility
parent
bcbd0325
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
13 deletions
+23
-13
app/views/admin/dashboard/index.html.haml
app/views/admin/dashboard/index.html.haml
+18
-12
app/views/projects/services/_index.html.haml
app/views/projects/services/_index.html.haml
+1
-1
changelogs/unreleased/27503-feature-status-aria-labels.yml
changelogs/unreleased/27503-feature-status-aria-labels.yml
+4
-0
No files found.
app/views/admin/dashboard/index.html.haml
View file @
735ab933
...
@@ -43,28 +43,34 @@
...
@@ -43,28 +43,34 @@
%h4
%h4
Features
Features
%hr
%hr
%p
-
sign_up
=
"Sign up"
Sign up
%p
{
"aria-label"
=>
"#{sign_up}: status "
+
(
signup_enabled?
?
"on"
:
"off"
)
}
=
sign_up
%span
.light.pull-right
%span
.light.pull-right
=
boolean_to_icon
signup_enabled?
=
boolean_to_icon
signup_enabled?
%p
-
ldap
=
"LDAP"
LDAP
%p
{
"aria-label"
=>
"#{ldap}: status "
+
(
Gitlab
.
config
.
ldap
.
enabled
?
"on"
:
"off"
)
}
=
ldap
%span
.light.pull-right
%span
.light.pull-right
=
boolean_to_icon
Gitlab
.
config
.
ldap
.
enabled
=
boolean_to_icon
Gitlab
.
config
.
ldap
.
enabled
%p
-
gravatar
=
"Gravatar"
Gravatar
%p
{
"aria-label"
=>
"#{gravatar}: status "
+
(
gravatar_enabled?
?
"on"
:
"off"
)
}
=
gravatar
%span
.light.pull-right
%span
.light.pull-right
=
boolean_to_icon
gravatar_enabled?
=
boolean_to_icon
gravatar_enabled?
%p
-
omniauth
=
"OmniAuth"
OmniAuth
%p
{
"aria-label"
=>
"#{omniauth}: status "
+
(
Gitlab
.
config
.
omniauth
.
enabled
?
"on"
:
"off"
)
}
=
omniauth
%span
.light.pull-right
%span
.light.pull-right
=
boolean_to_icon
Gitlab
.
config
.
omniauth
.
enabled
=
boolean_to_icon
Gitlab
.
config
.
omniauth
.
enabled
%p
-
reply_email
=
"Reply by email"
Reply by email
%p
{
"aria-label"
=>
"#{reply_email}: status "
+
(
Gitlab
::
IncomingEmail
.
enabled?
?
"on"
:
"off"
)
}
=
reply_email
%span
.light.pull-right
%span
.light.pull-right
=
boolean_to_icon
Gitlab
::
IncomingEmail
.
enabled?
=
boolean_to_icon
Gitlab
::
IncomingEmail
.
enabled?
%p
-
container_reg
=
"Container Registry"
Container Registry
%p
{
"aria-label"
=>
"#{container_reg}: status "
+
(
Gitlab
.
config
.
registry
.
enabled
?
"on"
:
"off"
)
}
=
container_reg
%span
.light.pull-right
%span
.light.pull-right
=
boolean_to_icon
Gitlab
.
config
.
registry
.
enabled
=
boolean_to_icon
Gitlab
.
config
.
registry
.
enabled
...
...
app/views/projects/services/_index.html.haml
View file @
735ab933
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
%th
Last edit
%th
Last edit
-
@services
.
sort_by
(
&
:title
).
each
do
|
service
|
-
@services
.
sort_by
(
&
:title
).
each
do
|
service
|
%tr
%tr
%td
%td
{
"aria-label"
=>
"#{service.title}: status "
+
(
service
.
activated?
?
"on"
:
"off"
)
}
=
boolean_to_icon
service
.
activated?
=
boolean_to_icon
service
.
activated?
%td
%td
=
link_to
edit_namespace_project_service_path
(
@project
.
namespace
,
@project
,
service
.
to_param
)
do
=
link_to
edit_namespace_project_service_path
(
@project
.
namespace
,
@project
,
service
.
to_param
)
do
...
...
changelogs/unreleased/27503-feature-status-aria-labels.yml
0 → 100644
View file @
735ab933
---
title
:
Add `aria-label` for feature status accessibility
merge_request
:
9830
author
:
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