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

Add Priority to Maniphest Hovercard

Summary: Fixes T5524, adds priority to Maniphest's hovercard. Also fixes Blocking language.

Test Plan: Hover over a task, see new stuff.

Reviewers: lpriestley, epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T5524

Differential Revision: https://secure.phabricator.com/D13750
This commit is contained in:
Chad Little 2015-07-28 19:42:26 -07:00
parent 3d4df1fe8f
commit fb13692bd3

View file

@ -53,12 +53,15 @@ final class ManiphestHovercardEventListener extends PhabricatorEventListener {
$owner = phutil_tag('em', array(), pht('None'));
}
$hovercard->addField(pht('Assigned To'), $owner);
$hovercard->addField(
pht('Priority'),
ManiphestTaskPriority::getTaskPriorityName($task->getPriority()));
if ($edge_phids) {
$edge_types = array(
$e_project => pht('Projects'),
$e_dep_by => pht('Dependent Tasks'),
$e_dep_on => pht('Depends On'),
$e_dep_by => pht('Blocks'),
$e_dep_on => pht('Blocked By'),
);
$max_count = 6;