1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 12:52:42 +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; $classes[] = 'handle-status-'.$this->status;
} }
$circle = null;
if ($this->availability != self::AVAILABILITY_FULL) { if ($this->availability != self::AVAILABILITY_FULL) {
$classes[] = 'handle-availability-'.$this->availability; $classes[] = 'handle-availability-'.$this->availability;
$circle = array(
phutil_tag(
'span',
array(
'class' => 'perfect-circle',
),
"\xE2\x80\xA2"),
' ',
);
} }
if ($this->getType() == PhabricatorPeopleUserPHIDType::TYPECONST) { if ($this->getType() == PhabricatorPeopleUserPHIDType::TYPECONST) {
@ -339,7 +349,7 @@ final class PhabricatorObjectHandle
return javelin_tag( return javelin_tag(
$uri ? 'a' : 'span', $uri ? 'a' : 'span',
$attributes, $attributes,
array($icon, $name)); array($circle, $icon, $name));
} }
public function renderTag() { public function renderTag() {

View file

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