1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 13:22:42 +01:00

Adding author information to AuditListView

Summary:
Adding the Author to the home page and Audit overview page,
so that at a glance you can see who authored the commits
that need to be audited

Test Plan: View home page and audit overview page and see that author is shown

Reviewers: #blessed_reviewers, epriestley

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Differential Revision: https://secure.phabricator.com/D8438
This commit is contained in:
Michael Peters 2014-03-07 08:40:35 -08:00 committed by epriestley
parent 49eaa9f8fe
commit 5e47f2a862

View file

@ -134,6 +134,8 @@ final class PhabricatorAuditListView extends AphrontView {
$status_color =
PhabricatorAuditStatusConstants::getStatusColor($status_code);
$author_name = $commit->getCommitData()->getAuthorName();
$auditor_handle = $this->getHandle($audit->getAuditorPHID());
$item = id(new PHUIObjectItemView())
->setObjectName($commit_name)
@ -142,6 +144,7 @@ final class PhabricatorAuditListView extends AphrontView {
->setBarColor($status_color)
->addAttribute($status_text)
->addAttribute($reasons)
->addAttribute(pht('Author: %s', $author_name))
->addIcon('none', $committed)
->addByline(pht('Auditor: %s', $auditor_handle->renderLink()));