Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/view/DiffusionCommitGraphView.php
Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Lines | foreach ($items as $hash => $item) { | ||||
if ($show_builds) { | if ($show_builds) { | ||||
$this->addBuildAction($item_view, $hash); | $this->addBuildAction($item_view, $hash); | ||||
} | } | ||||
$this->addAuditAction($item_view, $hash); | $this->addAuditAction($item_view, $hash); | ||||
if ($show_auditors) { | if ($show_auditors) { | ||||
$auditor_list = $item_view->newPropertyList(); | $auditor_list = $item_view->newMapView(); | ||||
if ($commit) { | if ($commit) { | ||||
$auditors = $this->newAuditorList($commit, $handles); | $auditors = $this->newAuditorList($commit, $handles); | ||||
$auditor_list->addProperty(pht('Auditors'), $auditors); | $auditor_list->newItem() | ||||
->setName(pht('Auditors')) | |||||
->setValue($auditors); | |||||
} | } | ||||
} | } | ||||
$property_list = $item_view->newPropertyList(); | $property_list = $item_view->newMapView(); | ||||
if ($commit) { | if ($commit) { | ||||
$author_view = $this->getCommitAuthorView($commit); | $author_view = $this->getCommitAuthorView($commit); | ||||
if ($author_view) { | if ($author_view) { | ||||
$property_list->addProperty( | $property_list->newItem() | ||||
pht('Author'), | ->setName(pht('Author')) | ||||
$this->getCommitAuthorView($commit)); | ->setValue($author_view); | ||||
} | } | ||||
} | } | ||||
if ($show_revisions) { | if ($show_revisions) { | ||||
if ($commit) { | if ($commit) { | ||||
$revisions = $this->getRevisions($commit); | $revisions = $this->getRevisions($commit); | ||||
if ($revisions) { | if ($revisions) { | ||||
$revision = head($revisions); | $revision = head($revisions); | ||||
$handle = $handles[$revision->getPHID()]; | $handle = $handles[$revision->getPHID()]; | ||||
$property_list->addProperty( | $property_list->newItem() | ||||
pht('Revision'), | ->setName(pht('Revision')) | ||||
$handle->renderLink()); | ->setValue($handle->renderLink()); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
$views[$hash] = $item_view; | $views[$hash] = $item_view; | ||||
} | } | ||||
return $views; | return $views; | ||||
▲ Show 20 Lines • Show All 410 Lines • Show Last 20 Lines |