Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/view/DifferentialLocalCommitsView.php
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | final class DifferentialLocalCommitsView extends AphrontView { | ||||
private function buildCommitLink($hash) { | private function buildCommitLink($hash) { | ||||
$commit_for_link = idx($this->commitsForLinks, $hash); | $commit_for_link = idx($this->commitsForLinks, $hash); | ||||
$commit_hash = self::formatCommit($hash); | $commit_hash = self::formatCommit($hash); | ||||
if ($commit_for_link) { | if ($commit_for_link) { | ||||
$link = phutil_tag( | $link = phutil_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
'href' => $commit_for_link->getURI()), | 'href' => $commit_for_link->getURI(), | ||||
), | |||||
$commit_hash); | $commit_hash); | ||||
} else { | } else { | ||||
$link = $commit_hash; | $link = $commit_hash; | ||||
} | } | ||||
return $link; | return $link; | ||||
} | } | ||||
} | } |