Differential D14242 Diff 34389 src/applications/diffusion/controller/DiffusionLastModifiedController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionLastModifiedController.php
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | private function renderColumns( | ||||
assert_instances_of($handles, 'PhabricatorObjectHandle'); | assert_instances_of($handles, 'PhabricatorObjectHandle'); | ||||
$viewer = $this->getRequest()->getUser(); | $viewer = $this->getRequest()->getUser(); | ||||
if ($commit) { | if ($commit) { | ||||
$epoch = $commit->getEpoch(); | $epoch = $commit->getEpoch(); | ||||
$modified = DiffusionView::linkCommit( | $modified = DiffusionView::linkCommit( | ||||
$drequest->getRepository(), | $drequest->getRepository(), | ||||
$commit->getCommitIdentifier()); | $commit->getCommitIdentifier()); | ||||
$date = phabricator_date($epoch, $viewer); | $date = phabricator_datetime($epoch, $viewer); | ||||
$time = phabricator_time($epoch, $viewer); | |||||
} else { | } else { | ||||
$modified = ''; | $modified = ''; | ||||
$date = ''; | $date = ''; | ||||
$time = ''; | |||||
} | } | ||||
$data = $commit->getCommitData(); | $data = $commit->getCommitData(); | ||||
if ($data) { | if ($data) { | ||||
$author_phid = $data->getCommitDetail('authorPHID'); | $author_phid = $data->getCommitDetail('authorPHID'); | ||||
if ($author_phid && isset($handles[$author_phid])) { | if ($author_phid && isset($handles[$author_phid])) { | ||||
$author = $handles[$author_phid]->renderLink(); | $author = $handles[$author_phid]->renderLink(); | ||||
} else { | } else { | ||||
Show All 17 Lines | private function renderColumns( | ||||
} else { | } else { | ||||
$author = ''; | $author = ''; | ||||
$details = ''; | $details = ''; | ||||
} | } | ||||
$return = array( | $return = array( | ||||
'commit' => $modified, | 'commit' => $modified, | ||||
'date' => $date, | 'date' => $date, | ||||
'time' => $time, | |||||
'author' => $author, | 'author' => $author, | ||||
'details' => $details, | 'details' => $details, | ||||
); | ); | ||||
if ($lint !== null) { | if ($lint !== null) { | ||||
$return['lint'] = phutil_tag( | $return['lint'] = phutil_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
Show All 18 Lines |