1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 04:20:55 +01:00

Add date to author panel in Maniphest

Summary: Adds a date with the author name on the Authored By panel in Maniphest. A basic treatment, will see how it feels.

Test Plan: Look at a few tasks

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D15456
This commit is contained in:
Chad Little 2016-03-10 08:58:23 -08:00
parent e351eba744
commit 31984a78ee

View file

@ -244,6 +244,8 @@ final class ManiphestTaskDetailController extends ManiphestController {
$author_href = $handles[$author_phid]->getURI(); $author_href = $handles[$author_phid]->getURI();
$author = $viewer->renderHandle($author_phid)->render(); $author = $viewer->renderHandle($author_phid)->render();
$content = phutil_tag('strong', array(), $author); $content = phutil_tag('strong', array(), $author);
$date = phabricator_date($task->getDateCreated(), $viewer);
$content = pht('%s, %s', $content, $date);
$authored_by = id(new PHUIHeadThingView()) $authored_by = id(new PHUIHeadThingView())
->setImage($author_uri) ->setImage($author_uri)
->setImageHref($author_href) ->setImageHref($author_href)