Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/phid/PhabricatorPeopleUserPHIDType.php
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | foreach ($handles as $phid => $handle) { | ||||
$handle | $handle | ||||
->setIcon($icon_icon) | ->setIcon($icon_icon) | ||||
->setSubtitle($subtitle) | ->setSubtitle($subtitle) | ||||
->setTokenIcon('fa-user'); | ->setTokenIcon('fa-user'); | ||||
} | } | ||||
$availability = null; | $availability = null; | ||||
if (!$user->isUserActivated()) { | if (!$user->isResponsive()) { | ||||
$availability = PhabricatorObjectHandle::AVAILABILITY_DISABLED; | $availability = PhabricatorObjectHandle::AVAILABILITY_DISABLED; | ||||
} else { | } else { | ||||
$until = $user->getAwayUntil(); | $until = $user->getAwayUntil(); | ||||
if ($until) { | if ($until) { | ||||
$away = PhabricatorCalendarEventInvitee::AVAILABILITY_AWAY; | $away = PhabricatorCalendarEventInvitee::AVAILABILITY_AWAY; | ||||
if ($user->getDisplayAvailability() == $away) { | if ($user->getDisplayAvailability() == $away) { | ||||
$availability = PhabricatorObjectHandle::AVAILABILITY_NONE; | $availability = PhabricatorObjectHandle::AVAILABILITY_NONE; | ||||
} else { | } else { | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |