Page MenuHomePhabricator

D8982.id21307.diff
No OneTemporary

D8982.id21307.diff

diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -103,7 +103,7 @@
'rsrc/css/application/settings/settings.css' => 'ea8f5915',
'rsrc/css/application/slowvote/slowvote.css' => '266df6a1',
'rsrc/css/application/subscriptions/subscribers-list.css' => '5bb30c78',
- 'rsrc/css/application/tokens/tokens.css' => '5f7bca25',
+ 'rsrc/css/application/tokens/tokens.css' => '543b11c1',
'rsrc/css/application/uiexample/example.css' => '528b19de',
'rsrc/css/core/core.css' => '7dff07c3',
'rsrc/css/core/remarkup.css' => '0ec9ea61',
@@ -806,7 +806,7 @@
'sprite-tokens-css' => '1706b943',
'subscribers-list-css' => '5bb30c78',
'syntax-highlighting-css' => '3c18c1cb',
- 'tokens-css' => '5f7bca25',
+ 'tokens-css' => '543b11c1',
),
'requires' =>
array(
diff --git a/src/applications/tokens/controller/PhabricatorTokenGiveController.php b/src/applications/tokens/controller/PhabricatorTokenGiveController.php
--- a/src/applications/tokens/controller/PhabricatorTokenGiveController.php
+++ b/src/applications/tokens/controller/PhabricatorTokenGiveController.php
@@ -73,6 +73,13 @@
$buttons = array();
$ii = 0;
foreach ($tokens as $token) {
+ $aural = javelin_tag(
+ 'span',
+ array(
+ 'aural' => true,
+ ),
+ pht('Award "%s" Token', $token->getName()));
+
$buttons[] = javelin_tag(
'button',
array(
@@ -85,7 +92,10 @@
'tip' => $token->getName(),
)
),
- $token->renderIcon());
+ array(
+ $aural,
+ $token->renderIcon(),
+ ));
if ((++$ii % 4) == 0) {
$buttons[] = phutil_tag('br');
}
diff --git a/src/applications/tokens/event/PhabricatorTokenUIEventListener.php b/src/applications/tokens/event/PhabricatorTokenUIEventListener.php
--- a/src/applications/tokens/event/PhabricatorTokenUIEventListener.php
+++ b/src/applications/tokens/event/PhabricatorTokenUIEventListener.php
@@ -115,16 +115,29 @@
}
$token = $tokens[$token_given->getTokenPHID()];
+ $aural = javelin_tag(
+ 'span',
+ array(
+ 'aural' => true,
+ ),
+ pht(
+ '"%s" token, awarded by %s.',
+ $token->getName(),
+ $handles[$token_given->getAuthorPHID()]->getName()));
$list[] = javelin_tag(
'span',
array(
'sigil' => 'has-tooltip',
+ 'class' => 'token-icon',
'meta' => array(
'tip' => $handles[$token_given->getAuthorPHID()]->getName(),
),
),
- $token->renderIcon());
+ array(
+ $aural,
+ $token->renderIcon(),
+ ));
}
$view = $event->getValue('view');
diff --git a/webroot/rsrc/css/application/tokens/tokens.css b/webroot/rsrc/css/application/tokens/tokens.css
--- a/webroot/rsrc/css/application/tokens/tokens.css
+++ b/webroot/rsrc/css/application/tokens/tokens.css
@@ -18,3 +18,7 @@
.token-grid {
text-align: center;
}
+
+.token-icon + .token-icon {
+ margin-left: 4px;
+}

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 21, 2:52 AM (6 h, 23 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7714834
Default Alt Text
D8982.id21307.diff (3 KB)

Event Timeline