Differential D7549 Diff 17052 src/applications/differential/controller/DifferentialDiffViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/controller/DifferentialDiffViewController.php
Show All 30 Lines | if ($diff->getRevisionID()) { | ||||
array( | array( | ||||
'href' => '/D'.$diff->getRevisionID(), | 'href' => '/D'.$diff->getRevisionID(), | ||||
), | ), | ||||
'D'.$diff->getRevisionID()))); | 'D'.$diff->getRevisionID()))); | ||||
} else { | } else { | ||||
// TODO: implement optgroup support in AphrontFormSelectControl? | // TODO: implement optgroup support in AphrontFormSelectControl? | ||||
$select = array(); | $select = array(); | ||||
$select[] = hsprintf('<optgroup label="%s">', pht('Create New Revision')); | $select[] = hsprintf('<optgroup label="%s">', pht('Create New Revision')); | ||||
$select[] = hsprintf( | $select[] = phutil_tag( | ||||
'<option value="">%s</option>', | 'option', | ||||
array('value' => ''), | |||||
pht('Create a new Revision...')); | pht('Create a new Revision...')); | ||||
$select[] = hsprintf('</optgroup>'); | $select[] = hsprintf('</optgroup>'); | ||||
$revisions = id(new DifferentialRevisionQuery()) | $revisions = id(new DifferentialRevisionQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withAuthors(array($viewer->getPHID())) | ->withAuthors(array($viewer->getPHID())) | ||||
->withStatus(DifferentialRevisionQuery::STATUS_OPEN) | ->withStatus(DifferentialRevisionQuery::STATUS_OPEN) | ||||
->execute(); | ->execute(); | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |