Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/view/DifferentialChangesetListView.php
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | public function render() { | ||||
Javelin::initBehavior('differential-toggle-files', array( | Javelin::initBehavior('differential-toggle-files', array( | ||||
'pht' => array( | 'pht' => array( | ||||
'undo' => pht('Undo'), | 'undo' => pht('Undo'), | ||||
'collapsed' => pht('This file content has been collapsed.'), | 'collapsed' => pht('This file content has been collapsed.'), | ||||
), | ), | ||||
)); | )); | ||||
Javelin::initBehavior( | |||||
'differential-dropdown-menus', | |||||
array( | |||||
'pht' => array( | |||||
'Open in Editor' => pht('Open in Editor'), | |||||
'Show All Context' => pht('Show All Context'), | |||||
'All Context Shown' => pht('All Context Shown'), | |||||
"Can't Toggle Unloaded File" => pht("Can't Toggle Unloaded File"), | |||||
'Expand File' => pht('Expand File'), | |||||
'Collapse File' => pht('Collapse File'), | |||||
'Browse in Diffusion' => pht('Browse in Diffusion'), | |||||
'View Standalone' => pht('View Standalone'), | |||||
'Show Raw File (Left)' => pht('Show Raw File (Left)'), | |||||
'Show Raw File (Right)' => pht('Show Raw File (Right)'), | |||||
'Configure Editor' => pht('Configure Editor'), | |||||
'Load Changes' => pht('Load Changes'), | |||||
'View Side-by-Side' => pht('View Side-by-Side'), | |||||
'View Unified' => pht('View Unified'), | |||||
'Change Text Encoding...' => pht('Change Text Encoding...'), | |||||
'Highlight As...' => pht('Highlight As...'), | |||||
), | |||||
)); | |||||
$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 61 Lines • ▼ Show 20 Lines | foreach ($changesets as $key => $changeset) { | ||||
} | } | ||||
$output[] = $detail->render(); | $output[] = $detail->render(); | ||||
$ids[] = $detail->getID(); | $ids[] = $detail->getID(); | ||||
} | } | ||||
$this->requireResource('aphront-tooltip-css'); | $this->requireResource('aphront-tooltip-css'); | ||||
$this->initBehavior('differential-populate', array( | $this->initBehavior( | ||||
'differential-populate', | |||||
array( | |||||
'changesetViewIDs' => $ids, | 'changesetViewIDs' => $ids, | ||||
'pht' => array( | |||||
'Open in Editor' => pht('Open in Editor'), | |||||
'Show All Context' => pht('Show All Context'), | |||||
'All Context Shown' => pht('All Context Shown'), | |||||
"Can't Toggle Unloaded File" => pht("Can't Toggle Unloaded File"), | |||||
'Expand File' => pht('Expand File'), | |||||
'Collapse File' => pht('Collapse File'), | |||||
'Browse in Diffusion' => pht('Browse in Diffusion'), | |||||
'View Standalone' => pht('View Standalone'), | |||||
'Show Raw File (Left)' => pht('Show Raw File (Left)'), | |||||
'Show Raw File (Right)' => pht('Show Raw File (Right)'), | |||||
'Configure Editor' => pht('Configure Editor'), | |||||
'Load Changes' => pht('Load Changes'), | |||||
'View Side-by-Side' => pht('View Side-by-Side'), | |||||
'View Unified' => pht('View Unified'), | |||||
'Change Text Encoding...' => pht('Change Text Encoding...'), | |||||
'Highlight As...' => pht('Highlight As...'), | |||||
), | |||||
)); | )); | ||||
$this->initBehavior('differential-comment-jump', array()); | $this->initBehavior('differential-comment-jump', array()); | ||||
if ($this->inlineURI) { | if ($this->inlineURI) { | ||||
Javelin::initBehavior('differential-edit-inline-comments', array( | Javelin::initBehavior('differential-edit-inline-comments', array( | ||||
'uri' => $this->inlineURI, | 'uri' => $this->inlineURI, | ||||
'stage' => 'differential-review-stage', | 'stage' => 'differential-review-stage', | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |