Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/markup/PhabricatorMentionRemarkupRule.php
| Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | foreach ($metadata as $username => $tokens) { | ||||
| ->setPHID($user->getPHID()) | ->setPHID($user->getPHID()) | ||||
| ->setName('@'.$user->getUserName()) | ->setName('@'.$user->getUserName()) | ||||
| ->setHref($user_href); | ->setHref($user_href); | ||||
| if ($user_has_no_permission) { | if ($user_has_no_permission) { | ||||
| $tag->addClass('phabricator-remarkup-mention-nopermission'); | $tag->addClass('phabricator-remarkup-mention-nopermission'); | ||||
| } | } | ||||
| if (!$user->isUserActivated()) { | if (!$user->isResponsive()) { | ||||
| $tag->setDotColor(PHUITagView::COLOR_GREY); | $tag->setDotColor(PHUITagView::COLOR_GREY); | ||||
| } else { | } else { | ||||
| if ($user->getAwayUntil()) { | if ($user->getAwayUntil()) { | ||||
| $away = PhabricatorCalendarEventInvitee::AVAILABILITY_AWAY; | $away = PhabricatorCalendarEventInvitee::AVAILABILITY_AWAY; | ||||
| if ($user->getDisplayAvailability() == $away) { | if ($user->getDisplayAvailability() == $away) { | ||||
| $tag->setDotColor(PHUITagView::COLOR_RED); | $tag->setDotColor(PHUITagView::COLOR_RED); | ||||
| } else { | } else { | ||||
| $tag->setDotColor(PHUITagView::COLOR_ORANGE); | $tag->setDotColor(PHUITagView::COLOR_ORANGE); | ||||
| Show All 29 Lines | |||||