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:
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) {
|
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(
|
||||||
|
|
Loading…
Reference in a new issue