1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 00:32:42 +01:00

Enable hovercards for the "Task Graph" UI in Maniphest

Summary: See PHI118. Enables hovercards to support peeking at tags and other details if you, e.g., create numerous identical subtasks of each task.

Test Plan: {F5210816}

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D18681
This commit is contained in:
epriestley 2017-10-04 10:54:42 -07:00
parent b9fd526250
commit 0ea5d668d1

View file

@ -27,6 +27,8 @@ final class ManiphestTaskGraph
protected function newTableRow($phid, $object, $trace) { protected function newTableRow($phid, $object, $trace) {
$viewer = $this->getViewer(); $viewer = $this->getViewer();
Javelin::initBehavior('phui-hovercards');
if ($object) { if ($object) {
$status = $object->getStatus(); $status = $object->getStatus();
$priority = $object->getPriority(); $priority = $object->getPriority();
@ -51,15 +53,16 @@ final class ManiphestTaskGraph
$assigned = phutil_tag('em', array(), pht('None')); $assigned = phutil_tag('em', array(), pht('None'));
} }
$full_title = $object->getTitle(); $link = javelin_tag(
$link = phutil_tag(
'a', 'a',
array( array(
'href' => $object->getURI(), 'href' => $object->getURI(),
'title' => $full_title, 'sigil' => 'hovercard',
'meta' => array(
'hoverPHID' => $object->getPHID(),
), ),
$full_title); ),
$object->getTitle());
$link = array( $link = array(
phutil_tag( phutil_tag(