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:
parent
b9fd526250
commit
0ea5d668d1
1 changed files with 8 additions and 5 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue