1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 08:42:41 +01:00

Link repo history from repo overview commits

Test Plan: Clicked on it.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3928
This commit is contained in:
vrana 2012-11-08 13:45:21 -08:00
parent bd1bc6d71a
commit 2137b49d16

View file

@ -75,7 +75,16 @@ final class DiffusionHomeController extends DiffusionController {
$id = $repository->getID();
$commit = idx($commits, $id);
$size = idx(idx($summaries, $id, array()), 'size', 0);
$size = idx(idx($summaries, $id, array()), 'size', '-');
if ($size != '-') {
$size = hsprintf(
'<a href="%s">%s</a>',
DiffusionRequest::generateDiffusionURI(array(
'callsign' => $repository->getCallsign(),
'action' => 'history',
)),
number_format($size));
}
$date = '-';
$time = '-';
@ -94,7 +103,7 @@ final class DiffusionHomeController extends DiffusionController {
phutil_escape_html($repository->getDetail('description')),
PhabricatorRepositoryType::getNameForRepositoryType(
$repository->getVersionControlSystem()),
$size ? number_format($size) : '-',
$size,
$commit
? DiffusionView::linkCommit(
$repository,