diff --git a/src/view/phui/PHUICurtainObjectRefView.php b/src/view/phui/PHUICurtainObjectRefView.php --- a/src/view/phui/PHUICurtainObjectRefView.php +++ b/src/view/phui/PHUICurtainObjectRefView.php @@ -7,6 +7,7 @@ private $epoch; private $highlighted; private $exiled; + private $hovercarded = true; private $exileNote = false; public function setHandle(PhabricatorObjectHandle $handle) { @@ -30,6 +31,11 @@ return $this; } + public function setHovercarded($hovercarded) { + $this->hovercarded = $hovercarded; + return $this; + } + protected function getTagAttributes() { $classes = array(); $classes[] = 'phui-curtain-object-ref-view'; @@ -155,7 +161,11 @@ $handle = $this->handle; if ($handle) { - $title_view = $handle->renderLink(); + if ($this->hovercarded) { + $title_view = $handle->renderHovercardLink(); + } else { + $title_view = $handle->renderLink(); + } } return $title_view;