From e0918883e7f54c2fa7822b98762fb13fdbc446b4 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 6 Mar 2017 10:07:01 -0800 Subject: [PATCH] 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 --- .../controller/PhabricatorPeopleProfileBadgesController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/applications/people/controller/PhabricatorPeopleProfileBadgesController.php b/src/applications/people/controller/PhabricatorPeopleProfileBadgesController.php index 73e5459cda..93b1f91ea8 100644 --- a/src/applications/people/controller/PhabricatorPeopleProfileBadgesController.php +++ b/src/applications/people/controller/PhabricatorPeopleProfileBadgesController.php @@ -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); }