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

Ref T6500, Duplicated tasks should be marked more visibly as duplicates

Summary: When merging tasks, the corresponding transaction on the merged task should be black, and the transaction on the ultimate task should be green.

Test Plan: Create two tasks, merge one into the other, merged task transaction is black, the surviving task should show a green transaction.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: chad, Korvin, epriestley

Maniphest Tasks: T6500

Differential Revision: https://secure.phabricator.com/D10827
This commit is contained in:
lkassianik 2014-11-11 18:25:19 -08:00 committed by epriestley
parent 36c46d80f5
commit 95df7717c3

View file

@ -213,6 +213,11 @@ final class ManiphestTransaction
return 'yellow';
}
case self::TYPE_MERGED_FROM:
return 'orange';
case self::TYPE_MERGED_INTO:
return 'black';
}
return parent::getColor();
@ -591,7 +596,7 @@ final class ManiphestTransaction
case self::TYPE_MERGED_INTO:
return pht(
'%s merged this task into %s.',
'%s closed this task as a duplicate of %s.',
$this->renderHandleLink($author_phid),
$this->renderHandleLink($new));
break;