Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/view/DifferentialChangesetListView.php
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | final class DifferentialChangesetListView extends AphrontView { | ||||
public function render() { | public function render() { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$this->requireResource('differential-changeset-view-css'); | $this->requireResource('differential-changeset-view-css'); | ||||
$changesets = $this->changesets; | $changesets = $this->changesets; | ||||
Javelin::initBehavior('differential-toggle-files', array( | |||||
'pht' => array( | |||||
'undo' => pht('Undo'), | |||||
'collapsed' => pht('This file content has been collapsed.'), | |||||
), | |||||
)); | |||||
$renderer = DifferentialChangesetParser::getDefaultRendererForViewer( | $renderer = DifferentialChangesetParser::getDefaultRendererForViewer( | ||||
$viewer); | $viewer); | ||||
$output = array(); | $output = array(); | ||||
$ids = array(); | $ids = array(); | ||||
foreach ($changesets as $key => $changeset) { | foreach ($changesets as $key => $changeset) { | ||||
$file = $changeset->getFilename(); | $file = $changeset->getFilename(); | ||||
▲ Show 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | $this->initBehavior( | ||||
pht('Hide or show inline comment.'), | pht('Hide or show inline comment.'), | ||||
'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 hidden comments.' => | 'Jump to next inline comment, including hidden comments.' => | ||||
pht('Jump to next inline comment, including hidden comments.'), | pht('Jump to next inline comment, including hidden comments.'), | ||||
'Jump to previous inline comment, including hidden comments.' => | 'Jump to previous inline comment, including hidden comments.' => | ||||
pht('Jump to previous inline comment, including hidden comments.'), | pht('Jump to previous inline comment, including hidden comments.'), | ||||
'This file content has been collapsed.' => | |||||
pht('This file content has been collapsed.'), | |||||
'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.' => | |||||
pht('You must select a file to hide or show.'), | |||||
), | ), | ||||
)); | )); | ||||
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 |