BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
3918c303
Commit
3918c303
authored
Mar 23, 2017
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '27503-feature-status-aria-labels' into 'master'
Add `aria-label` for feature status accessibility Closes #27503 See merge request !9830
parents
bcbd0325
735ab933
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
13 deletions
+23
-13
index.html.haml
app/views/admin/dashboard/index.html.haml
+18
-12
_index.html.haml
app/views/projects/services/_index.html.haml
+1
-1
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 @
3918c303
...
...
@@ -43,28 +43,34 @@
%h4
Features
%hr
%p
Sign up
-
sign_up
=
"Sign up"
%p
{
"aria-label"
=>
"#{sign_up}: status "
+
(
signup_enabled?
?
"on"
:
"off"
)
}
=
sign_up
%span
.light.pull-right
=
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
=
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
=
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
=
boolean_to_icon
Gitlab
.
config
.
omniauth
.
enabled
%p
Reply by email
-
reply_email
=
"Reply by email"
%p
{
"aria-label"
=>
"#{reply_email}: status "
+
(
Gitlab
::
IncomingEmail
.
enabled?
?
"on"
:
"off"
)
}
=
reply_email
%span
.light.pull-right
=
boolean_to_icon
Gitlab
::
IncomingEmail
.
enabled?
%p
Container Registry
-
container_reg
=
"Container Registry"
%p
{
"aria-label"
=>
"#{container_reg}: status "
+
(
Gitlab
.
config
.
registry
.
enabled
?
"on"
:
"off"
)
}
=
container_reg
%span
.light.pull-right
=
boolean_to_icon
Gitlab
.
config
.
registry
.
enabled
...
...
app/views/projects/services/_index.html.haml
View file @
3918c303
...
...
@@ -18,7 +18,7 @@
%th
Last edit
-
@services
.
sort_by
(
&
:title
).
each
do
|
service
|
%tr
%td
%td
{
"aria-label"
=>
"#{service.title}: status "
+
(
service
.
activated?
?
"on"
:
"off"
)
}
=
boolean_to_icon
service
.
activated?
%td
=
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 @
3918c303
---
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