1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +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) {
$viewer = $this->getViewer();
Javelin::initBehavior('phui-hovercards');
if ($object) {
$status = $object->getStatus();
$priority = $object->getPriority();
@ -51,15 +53,16 @@ final class ManiphestTaskGraph
$assigned = phutil_tag('em', array(), pht('None'));
}
$full_title = $object->getTitle();
$link = phutil_tag(
$link = javelin_tag(
'a',
array(
'href' => $object->getURI(),
'title' => $full_title,
'sigil' => 'hovercard',
'meta' => array(
'hoverPHID' => $object->getPHID(),
),
),
$full_title);
$object->getTitle());
$link = array(
phutil_tag(