mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
Remove logic which hides commit names in commit table when they're the same as previous commit names
Summary: See discussion in T2832. In particular, this is pretty confusing: {F38674} The confusion created in situations like this is much worse than the tiny benefit in parseability the UI rule provides. We'll probably rewrite this table in terms of ObjectListView anyway. Fixes T2832. Test Plan: Looked at Audit list. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T2832 Differential Revision: https://secure.phabricator.com/D5610
This commit is contained in:
parent
d98401833b
commit
be586de965
1 changed files with 6 additions and 12 deletions
|
@ -110,22 +110,16 @@ final class PhabricatorAuditListView extends AphrontView {
|
|||
public function render() {
|
||||
$rowc = array();
|
||||
|
||||
$last = null;
|
||||
$rows = array();
|
||||
foreach ($this->audits as $audit) {
|
||||
$commit_phid = $audit->getCommitPHID();
|
||||
$committed = null;
|
||||
if ($last == $commit_phid) {
|
||||
$commit_name = null;
|
||||
$commit_desc = null;
|
||||
} else {
|
||||
$commit_name = $this->getHandle($commit_phid)->renderLink();
|
||||
$commit_desc = $this->getCommitDescription($commit_phid);
|
||||
$commit = idx($this->commits, $commit_phid);
|
||||
if ($commit && $this->user) {
|
||||
$committed = phabricator_datetime($commit->getEpoch(), $this->user);
|
||||
}
|
||||
$last = $commit_phid;
|
||||
|
||||
$commit_name = $this->getHandle($commit_phid)->renderLink();
|
||||
$commit_desc = $this->getCommitDescription($commit_phid);
|
||||
$commit = idx($this->commits, $commit_phid);
|
||||
if ($commit && $this->user) {
|
||||
$committed = phabricator_datetime($commit->getEpoch(), $this->user);
|
||||
}
|
||||
|
||||
$reasons = $audit->getAuditReasons();
|
||||
|
|
Loading…
Reference in a new issue