1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-18 11:30:55 +01:00

Use Doritos™ Brand® perfect circles to indicate Busy/Away/Disabled

Summary:
Fixes T11829.

  - Currently in use: Doritos™ Brand® "Nacho Cheese"® perfect circles: •
  - Available alternative: Doritos™ Brand® "Cool Ranch"® perfect circles: ●

Test Plan: {F1913116}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11829

Differential Revision: https://secure.phabricator.com/D16834
This commit is contained in:
epriestley 2016-11-09 17:05:41 -08:00
parent 554b3c3810
commit 663629e8ad
5 changed files with 17 additions and 15 deletions

View file

@ -314,8 +314,18 @@ final class PhabricatorObjectHandle
$classes[] = 'handle-status-'.$this->status;
}
$circle = null;
if ($this->availability != self::AVAILABILITY_FULL) {
$classes[] = 'handle-availability-'.$this->availability;
$circle = array(
phutil_tag(
'span',
array(
'class' => 'perfect-circle',
),
"\xE2\x80\xA2"),
' ',
);
}
if ($this->getType() == PhabricatorPeopleUserPHIDType::TYPECONST) {
@ -339,7 +349,7 @@ final class PhabricatorObjectHandle
return javelin_tag(
$uri ? 'a' : 'span',
$attributes,
array($icon, $name));
array($circle, $icon, $name));
}
public function renderTag() {

View file

@ -76,24 +76,16 @@ a.handle-status-closed:hover {
color: #19558D;
}
a.handle-availability-disabled,
a.handle-availability-none,
a.handle-availability-partial {
padding-left: 11px;
background-repeat: no-repeat;
background-position: -4px center;
.handle-availability-none .perfect-circle {
color: {$red};
}
a.handle-availability-none {
background-image: url(/rsrc/image/icon/fatcow/bullet_red.png);
.handle-availability-partial .perfect-circle {
color: {$orange};
}
a.handle-availability-partial {
background-image: url(/rsrc/image/icon/fatcow/bullet_orange.png);
}
a.handle-availability-disabled {
background-image: url(/rsrc/image/icon/fatcow/bullet_black.png);
.handle-availability-disabled .perfect-circle {
color: {$greytext};
}
.aphront-developer-error-callout {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 230 B