From 5e47f2a8621552fef5b21df8fa087b683410e91f Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Fri, 7 Mar 2014 08:40:35 -0800 Subject: [PATCH] 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 --- src/applications/audit/view/PhabricatorAuditListView.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/applications/audit/view/PhabricatorAuditListView.php b/src/applications/audit/view/PhabricatorAuditListView.php index 16a5058521..24d6d393ef 100644 --- a/src/applications/audit/view/PhabricatorAuditListView.php +++ b/src/applications/audit/view/PhabricatorAuditListView.php @@ -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()));