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:
parent
cd6b284678
commit
e0918883e7
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue