Changeset View
Changeset View
Standalone View
Standalone View
src/applications/feed/story/PhabricatorFeedStory.php
Show First 20 Lines • Show All 271 Lines • ▼ Show 20 Lines | switch ($this->getRenderingTarget()) { | ||||
case PhabricatorApplicationTransaction::TARGET_TEXT: | case PhabricatorApplicationTransaction::TARGET_TEXT: | ||||
return $handle->getLinkName(); | return $handle->getLinkName(); | ||||
} | } | ||||
// NOTE: We render our own link here to customize the styling and add | // NOTE: We render our own link here to customize the styling and add | ||||
// the '_top' target for framed feeds. | // the '_top' target for framed feeds. | ||||
$class = null; | $class = null; | ||||
if ($handle->getType() == PhabricatorPeoplePHIDTypeUser::TYPECONST) { | if ($handle->getType() == PhabricatorPeopleUserPHIDType::TYPECONST) { | ||||
$class = 'phui-link-person'; | $class = 'phui-link-person'; | ||||
} | } | ||||
return javelin_tag( | return javelin_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
'href' => $handle->getURI(), | 'href' => $handle->getURI(), | ||||
'target' => $this->framed ? '_top' : null, | 'target' => $this->framed ? '_top' : null, | ||||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |