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

Add date awarded to profile badges

Summary: Ref T12270. Adds the date the badge was awarded.

Test Plan: Award a badge, see date on profile badge when card is flipped.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T12270

Differential Revision: https://secure.phabricator.com/D17471
This commit is contained in:
Chad Little 2017-03-06 10:07:01 -08:00
parent cd6b284678
commit e0918883e7

View file

@ -105,6 +105,7 @@ final class PhabricatorPeopleProfileBadgesController
$award = idx($awards, $badge->getPHID(), null);
$awarder_phid = $award->getAwarderPHID();
$awarder_handle = $viewer->renderHandle($awarder_phid);
$awarded_date = phabricator_date($award->getDateCreated(), $viewer);
$awarder_info = pht(
'Awarded by %s',
@ -116,7 +117,8 @@ final class PhabricatorPeopleProfileBadgesController
->setSubhead($badge->getFlavor())
->setQuality($badge->getQuality())
->setHref($badge->getViewURI())
->addByLine($awarder_info);
->addByLine($awarder_info)
->addByLine($awarded_date);
$flex->addItem($item);
}