mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 01:02:42 +01:00
Join author and committer in Diffusion browse
Summary: Consistent with history view, simpler. Test Plan: /diffusion/X/ Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3230
This commit is contained in:
parent
dbde4b9ff2
commit
81946fc08d
1 changed files with 5 additions and 11 deletions
|
@ -73,10 +73,11 @@ final class DiffusionBrowseTableView extends DiffusionView {
|
|||
if ($committer_phid && isset($handles[$committer_phid])) {
|
||||
$committer = $handles[$committer_phid]->renderLink();
|
||||
} else {
|
||||
$committer = self::renderName($data->getCommitDetail('committer'));
|
||||
$committer = self::renderName($committer);
|
||||
}
|
||||
if ($author != $committer) {
|
||||
$author .= '/'.$committer;
|
||||
}
|
||||
} else {
|
||||
$committer = $author;
|
||||
}
|
||||
|
||||
$details = AphrontTableView::renderSingleDisplayLine(
|
||||
|
@ -84,7 +85,6 @@ final class DiffusionBrowseTableView extends DiffusionView {
|
|||
} else {
|
||||
$author = '';
|
||||
$details = '';
|
||||
$committer = '';
|
||||
}
|
||||
|
||||
return array(
|
||||
|
@ -92,7 +92,6 @@ final class DiffusionBrowseTableView extends DiffusionView {
|
|||
'date' => $date,
|
||||
'time' => $time,
|
||||
'author' => $author,
|
||||
'committer' => $committer,
|
||||
'details' => $details,
|
||||
);
|
||||
}
|
||||
|
@ -162,7 +161,6 @@ final class DiffusionBrowseTableView extends DiffusionView {
|
|||
'date' => celerity_generate_unique_node_id(),
|
||||
'time' => celerity_generate_unique_node_id(),
|
||||
'author' => celerity_generate_unique_node_id(),
|
||||
'committer' => celerity_generate_unique_node_id(),
|
||||
'details' => celerity_generate_unique_node_id(),
|
||||
);
|
||||
|
||||
|
@ -203,7 +201,6 @@ final class DiffusionBrowseTableView extends DiffusionView {
|
|||
$dict['date'],
|
||||
$dict['time'],
|
||||
$dict['author'],
|
||||
$dict['committer'],
|
||||
$dict['details'],
|
||||
);
|
||||
}
|
||||
|
@ -221,8 +218,7 @@ final class DiffusionBrowseTableView extends DiffusionView {
|
|||
'Modified',
|
||||
'Date',
|
||||
'Time',
|
||||
'Author',
|
||||
'Committer',
|
||||
'Author/Committer',
|
||||
'Details',
|
||||
));
|
||||
$view->setColumnClasses(
|
||||
|
@ -234,7 +230,6 @@ final class DiffusionBrowseTableView extends DiffusionView {
|
|||
'',
|
||||
'right',
|
||||
'',
|
||||
'',
|
||||
'wide',
|
||||
));
|
||||
$view->setColumnVisibility(
|
||||
|
@ -247,7 +242,6 @@ final class DiffusionBrowseTableView extends DiffusionView {
|
|||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
));
|
||||
return $view->render();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue