Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/typeahead/PhabricatorPeopleDatasource.php
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | foreach ($users as $user) { | ||||
| ->setPriorityType('user') | ->setPriorityType('user') | ||||
| ->setClosed($closed); | ->setClosed($closed); | ||||
| if ($user->getIsMailingList()) { | if ($user->getIsMailingList()) { | ||||
| $result->setIcon('fa-envelope-o'); | $result->setIcon('fa-envelope-o'); | ||||
| } | } | ||||
| if ($this->enrichResults) { | if ($this->enrichResults) { | ||||
| $display_type = 'User'; | $display_type = pht('User'); | ||||
| if ($user->getIsAdmin()) { | if ($user->getIsAdmin()) { | ||||
| $display_type = 'Administrator'; | $display_type = pht('Administrator'); | ||||
| } | } | ||||
| $result->setDisplayType($display_type); | $result->setDisplayType($display_type); | ||||
| $result->setImageURI($handles[$user->getPHID()]->getImageURI()); | $result->setImageURI($handles[$user->getPHID()]->getImageURI()); | ||||
| } | } | ||||
| $results[] = $result; | $results[] = $result; | ||||
| } | } | ||||
| return $results; | return $results; | ||||
| } | } | ||||
| } | } | ||||