Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/view/DifferentialChangesetListView.php
| Show First 20 Lines • Show All 255 Lines • ▼ Show 20 Lines | $this->initBehavior( | ||||
| 'formationViewID' => $formation_id, | 'formationViewID' => $formation_id, | ||||
| 'inlineURI' => $this->inlineURI, | 'inlineURI' => $this->inlineURI, | ||||
| 'inlineListURI' => $this->inlineListURI, | 'inlineListURI' => $this->inlineListURI, | ||||
| 'isStandalone' => $this->getIsStandalone(), | 'isStandalone' => $this->getIsStandalone(), | ||||
| '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"), | |||||
| 'Expand File' => pht('Expand File'), | 'Expand File' => pht('Expand File'), | ||||
| 'Collapse File' => pht('Collapse File'), | 'Hide Changeset' => pht('Hide Changeset'), | ||||
| 'Show Path in Repository' => pht('Show Path in Repository'), | 'Show Path in Repository' => pht('Show Path in Repository'), | ||||
| 'Show Directory in Repository' => pht('Show Directory in Repository'), | 'Show Directory in Repository' => pht('Show Directory in Repository'), | ||||
| 'View Standalone' => pht('View Standalone'), | 'View Standalone' => pht('View Standalone'), | ||||
| 'Show Raw File (Left)' => pht('Show Raw File (Left)'), | 'Show Raw File (Left)' => pht('Show Raw File (Left)'), | ||||
| 'Show Raw File (Right)' => pht('Show Raw File (Right)'), | 'Show Raw File (Right)' => pht('Show Raw File (Right)'), | ||||
| 'Configure Editor' => pht('Configure Editor'), | 'Configure Editor' => pht('Configure Editor'), | ||||
| 'Load Changes' => pht('Load Changes'), | 'Load Changes' => pht('Load Changes'), | ||||
| 'View Side-by-Side Diff' => pht('View Side-by-Side Diff'), | 'View Side-by-Side Diff' => pht('View Side-by-Side Diff'), | ||||
| Show All 38 Lines | $this->initBehavior( | ||||
| 'You must select a comment to hide.' => | 'You must select a comment to hide.' => | ||||
| pht('You must select a comment to hide.'), | pht('You must select a comment to hide.'), | ||||
| 'Jump to next inline comment, including collapsed comments.' => | 'Jump to next inline comment, including collapsed comments.' => | ||||
| pht('Jump to next inline comment, including collapsed comments.'), | pht('Jump to next inline comment, including collapsed comments.'), | ||||
| 'Jump to previous inline comment, including collapsed comments.' => | 'Jump to previous inline comment, including collapsed comments.' => | ||||
| pht('Jump to previous inline comment, including collapsed comments.'), | pht('Jump to previous inline comment, including collapsed comments.'), | ||||
| 'This file content has been collapsed.' => | 'Hide or show the current changeset.' => | ||||
| pht('This file content has been collapsed.'), | pht('Hide or show the current changeset.'), | ||||
| 'Show Content' => pht('Show Content'), | |||||
| 'Hide or show the current file.' => | |||||
| pht('Hide or show the current file.'), | |||||
| 'You must select a file to hide or show.' => | 'You must select a file to hide or show.' => | ||||
| pht('You must select a file to hide or show.'), | pht('You must select a file to hide or show.'), | ||||
| 'Unsaved' => pht('Unsaved'), | 'Unsaved' => pht('Unsaved'), | ||||
| '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'), | ||||
| Show All 25 Lines | $this->initBehavior( | ||||
| 'Hide or show the paths panel.' => | 'Hide or show the paths panel.' => | ||||
| pht('Hide or show the paths panel.'), | pht('Hide or show the paths panel.'), | ||||
| 'Show path in repository.' => | 'Show path in repository.' => | ||||
| pht('Show path in repository.'), | pht('Show path in repository.'), | ||||
| 'Show directory in repository.' => | 'Show directory in repository.' => | ||||
| pht('Show directory in repository.'), | pht('Show directory in repository.'), | ||||
| 'Jump to the comment area.' => | |||||
| pht('Jump to the comment area.'), | |||||
| 'Show Changeset' => pht('Show Changeset'), | |||||
| ), | ), | ||||
| )); | )); | ||||
| 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 58 Lines • ▼ Show 20 Lines | private function renderViewOptionsDropdown( | ||||
| return id(new PHUIButtonView()) | return id(new PHUIButtonView()) | ||||
| ->setTag('a') | ->setTag('a') | ||||
| ->setText(pht('View Options')) | ->setText(pht('View Options')) | ||||
| ->setIcon('fa-bars') | ->setIcon('fa-bars') | ||||
| ->setColor(PHUIButtonView::GREY) | ->setColor(PHUIButtonView::GREY) | ||||
| ->setHref(idx($meta, 'detailURI', '#')) | ->setHref(idx($meta, 'detailURI', '#')) | ||||
| ->setMetadata($meta) | ->setMetadata($meta) | ||||
| ->addSigil('differential-view-options'); | ->addSigil('differential-view-options'); | ||||
| } | } | ||||
| private function appendDefaultQueryParams(PhutilURI $uri, array $params) { | private function appendDefaultQueryParams(PhutilURI $uri, array $params) { | ||||
| // Add these default query parameters to the query string if they do not | // Add these default query parameters to the query string if they do not | ||||
| // already exist. | // already exist. | ||||
| $have = array(); | $have = array(); | ||||
| foreach ($uri->getQueryParamsAsPairList() as $pair) { | foreach ($uri->getQueryParamsAsPairList() as $pair) { | ||||
| Show All 14 Lines | |||||