Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/view/DifferentialChangesetListView.php
| <?php | <?php | ||||
| final class DifferentialChangesetListView extends AphrontView { | final class DifferentialChangesetListView extends AphrontView { | ||||
| private $changesets = array(); | private $changesets = array(); | ||||
| private $visibleChangesets = array(); | private $visibleChangesets = array(); | ||||
| private $references = array(); | private $references = array(); | ||||
| private $inlineURI; | private $inlineURI; | ||||
| private $renderURI = '/differential/changeset/'; | private $renderURI = '/differential/changeset/'; | ||||
| private $whitespace; | private $whitespace; | ||||
| private $background; | private $background; | ||||
| private $header; | private $header; | ||||
| private $standaloneURI; | private $standaloneURI; | ||||
| private $leftRawFileURI; | private $leftRawFileURI; | ||||
| private $rightRawFileURI; | private $rightRawFileURI; | ||||
| private $inlineListURI; | |||||
| private $symbolIndexes = array(); | private $symbolIndexes = array(); | ||||
| private $repository; | private $repository; | ||||
| private $branch; | private $branch; | ||||
| private $diff; | private $diff; | ||||
| private $vsMap = array(); | private $vsMap = array(); | ||||
| private $title; | private $title; | ||||
| Show All 34 Lines | public function setVisibleChangesets($visible_changesets) { | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function setInlineCommentControllerURI($uri) { | public function setInlineCommentControllerURI($uri) { | ||||
| $this->inlineURI = $uri; | $this->inlineURI = $uri; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function setInlineListURI($uri) { | |||||
| $this->inlineListURI = $uri; | |||||
| return $this; | |||||
| } | |||||
| public function getInlineListURI() { | |||||
| return $this->inlineListURI; | |||||
| } | |||||
| public function setRepository(PhabricatorRepository $repository) { | public function setRepository(PhabricatorRepository $repository) { | ||||
| $this->repository = $repository; | $this->repository = $repository; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function setDiff(DifferentialDiff $diff) { | public function setDiff(DifferentialDiff $diff) { | ||||
| $this->diff = $diff; | $this->diff = $diff; | ||||
| return $this; | return $this; | ||||
| ▲ Show 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | public function render() { | ||||
| $this->requireResource('aphront-tooltip-css'); | $this->requireResource('aphront-tooltip-css'); | ||||
| $this->initBehavior( | $this->initBehavior( | ||||
| 'differential-populate', | 'differential-populate', | ||||
| array( | array( | ||||
| 'changesetViewIDs' => $ids, | 'changesetViewIDs' => $ids, | ||||
| 'inlineURI' => $this->inlineURI, | 'inlineURI' => $this->inlineURI, | ||||
| 'inlineListURI' => $this->inlineListURI, | |||||
| 'pht' => array( | 'pht' => array( | ||||
| 'Open in Editor' => pht('Open in Editor'), | 'Open in Editor' => pht('Open in Editor'), | ||||
| 'Show All Context' => pht('Show All Context'), | 'Show All Context' => pht('Show All Context'), | ||||
| 'All Context Shown' => pht('All Context Shown'), | 'All Context Shown' => pht('All Context Shown'), | ||||
| "Can't Toggle Unloaded File" => pht("Can't Toggle Unloaded File"), | "Can't Toggle Unloaded File" => pht("Can't Toggle Unloaded File"), | ||||
| 'Expand File' => pht('Expand File'), | 'Expand File' => pht('Expand File'), | ||||
| 'Collapse File' => pht('Collapse File'), | 'Collapse File' => pht('Collapse File'), | ||||
| 'Browse in Diffusion' => pht('Browse in Diffusion'), | 'Browse in Diffusion' => pht('Browse in Diffusion'), | ||||
| ▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | $this->initBehavior( | ||||
| 'Unsubmitted' => pht('Unsubmitted'), | 'Unsubmitted' => pht('Unsubmitted'), | ||||
| 'Comments' => pht('Comments'), | 'Comments' => pht('Comments'), | ||||
| 'Hide "Done" Inlines' => pht('Hide "Done" Inlines'), | 'Hide "Done" Inlines' => pht('Hide "Done" Inlines'), | ||||
| 'Hide Collapsed Inlines' => pht('Hide Collapsed Inlines'), | 'Hide Collapsed Inlines' => pht('Hide Collapsed Inlines'), | ||||
| 'Hide Older Inlines' => pht('Hide Older Inlines'), | 'Hide Older Inlines' => pht('Hide Older Inlines'), | ||||
| 'Hide All Inlines' => pht('Hide All Inlines'), | 'Hide All Inlines' => pht('Hide All Inlines'), | ||||
| 'Show All Inlines' => pht('Show All Inlines'), | 'Show All Inlines' => pht('Show All Inlines'), | ||||
| 'List Inline Comments' => pht('List Inline Comments'), | |||||
| ), | ), | ||||
| )); | )); | ||||
| if ($this->header) { | if ($this->header) { | ||||
| $header = $this->header; | $header = $this->header; | ||||
| } else { | } else { | ||||
| $header = id(new PHUIHeaderView()) | $header = id(new PHUIHeaderView()) | ||||
| ->setHeader($this->getTitle()); | ->setHeader($this->getTitle()); | ||||
| ▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines | |||||