Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/phid/PhabricatorPeopleUserPHIDType.php
| Show All 38 Lines | foreach ($handles as $phid => $handle) { | ||||
| $user = $objects[$phid]; | $user = $objects[$phid]; | ||||
| $realname = $user->getRealName(); | $realname = $user->getRealName(); | ||||
| $handle->setName($user->getUsername()); | $handle->setName($user->getUsername()); | ||||
| $handle->setURI('/p/'.$user->getUsername().'/'); | $handle->setURI('/p/'.$user->getUsername().'/'); | ||||
| $handle->setFullName($user->getFullName()); | $handle->setFullName($user->getFullName()); | ||||
| $handle->setImageURI($user->getProfileImageURI()); | $handle->setImageURI($user->getProfileImageURI()); | ||||
| if ($user->getIsMailingList()) { | |||||
| $handle->setIcon('fa-envelope-o'); | |||||
| } | |||||
| $availability = null; | $availability = null; | ||||
| if (!$user->isUserActivated()) { | if (!$user->isUserActivated()) { | ||||
| $availability = PhabricatorObjectHandle::AVAILABILITY_DISABLED; | $availability = PhabricatorObjectHandle::AVAILABILITY_DISABLED; | ||||
| } else { | } else { | ||||
| $until = $user->getAwayUntil(); | $until = $user->getAwayUntil(); | ||||
| if ($until) { | if ($until) { | ||||
| $availability = PhabricatorObjectHandle::AVAILABILITY_NONE; | $availability = PhabricatorObjectHandle::AVAILABILITY_NONE; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||