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:
parent
49eaa9f8fe
commit
5e47f2a862
1 changed files with 3 additions and 0 deletions
|
@ -134,6 +134,8 @@ final class PhabricatorAuditListView extends AphrontView {
|
||||||
$status_color =
|
$status_color =
|
||||||
PhabricatorAuditStatusConstants::getStatusColor($status_code);
|
PhabricatorAuditStatusConstants::getStatusColor($status_code);
|
||||||
|
|
||||||
|
$author_name = $commit->getCommitData()->getAuthorName();
|
||||||
|
|
||||||
$auditor_handle = $this->getHandle($audit->getAuditorPHID());
|
$auditor_handle = $this->getHandle($audit->getAuditorPHID());
|
||||||
$item = id(new PHUIObjectItemView())
|
$item = id(new PHUIObjectItemView())
|
||||||
->setObjectName($commit_name)
|
->setObjectName($commit_name)
|
||||||
|
@ -142,6 +144,7 @@ final class PhabricatorAuditListView extends AphrontView {
|
||||||
->setBarColor($status_color)
|
->setBarColor($status_color)
|
||||||
->addAttribute($status_text)
|
->addAttribute($status_text)
|
||||||
->addAttribute($reasons)
|
->addAttribute($reasons)
|
||||||
|
->addAttribute(pht('Author: %s', $author_name))
|
||||||
->addIcon('none', $committed)
|
->addIcon('none', $committed)
|
||||||
->addByline(pht('Auditor: %s', $auditor_handle->renderLink()));
|
->addByline(pht('Auditor: %s', $auditor_handle->renderLink()));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue