Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/view/DiffusionCommitGraphView.php
| Show First 20 Lines • Show All 326 Lines • ▼ Show 20 Lines | private function getCommitAuthorView($commit) { | ||||
| } | } | ||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| return $commit->newCommitAuthorView($viewer); | return $commit->newCommitAuthorView($viewer); | ||||
| } | } | ||||
| private function newBrowseButton($hash) { | private function newBrowseButton($hash) { | ||||
| $commit = $this->getCommit($hash); | $repository = $this->getRepository(); | ||||
| if ($repository) { | |||||
| $drequest = $this->getDiffusionRequest(); | |||||
| return $this->linkBrowse( | return $this->linkBrowse( | ||||
| '/', | $drequest->getPath(), | ||||
| array( | array( | ||||
| 'commit' => $hash, | 'commit' => $hash, | ||||
| 'branch' => $drequest->getBranch(), | |||||
| ), | ), | ||||
| $as_button = true); | $as_button = true); | ||||
| } | } | ||||
| return null; | |||||
| } | |||||
| private function getCommit($hash) { | private function getCommit($hash) { | ||||
| $commit_map = $this->getCommitMap(); | $commit_map = $this->getCommitMap(); | ||||
| return idx($commit_map, $hash); | return idx($commit_map, $hash); | ||||
| } | } | ||||
| private function getCommitMap() { | private function getCommitMap() { | ||||
| return $this->commitMap; | return $this->commitMap; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines | |||||