mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01:00
Use constants in DifferentialRevisionUpdateHistoryView
Test Plan: Display diff with whitespace changes. Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1581
This commit is contained in:
parent
1ab2a88605
commit
d65f62d055
2 changed files with 5 additions and 3 deletions
|
@ -191,9 +191,10 @@ final class DifferentialRevisionUpdateHistoryView extends AphrontView {
|
|||
));
|
||||
|
||||
$options = array(
|
||||
'ignore-all' => 'Ignore Most',
|
||||
'ignore-trailing' => 'Ignore Trailing',
|
||||
'show-all' => 'Show All',
|
||||
DifferentialChangesetParser::WHITESPACE_IGNORE_ALL => 'Ignore Most',
|
||||
DifferentialChangesetParser::WHITESPACE_IGNORE_TRAILING =>
|
||||
'Ignore Trailing',
|
||||
DifferentialChangesetParser::WHITESPACE_SHOW_ALL => 'Show All',
|
||||
);
|
||||
|
||||
$select = '<select name="whitespace">';
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
phutil_require_module('phabricator', 'applications/differential/constants/lintstatus');
|
||||
phutil_require_module('phabricator', 'applications/differential/constants/unitstatus');
|
||||
phutil_require_module('phabricator', 'applications/differential/parser/changeset');
|
||||
phutil_require_module('phabricator', 'infrastructure/celerity/api');
|
||||
phutil_require_module('phabricator', 'infrastructure/javelin/api');
|
||||
phutil_require_module('phabricator', 'infrastructure/javelin/markup');
|
||||
|
|
Loading…
Reference in a new issue