1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 03:50:54 +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:
vrana 2012-02-06 11:13:45 -08:00
parent 1ab2a88605
commit d65f62d055
2 changed files with 5 additions and 3 deletions

View file

@ -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">';

View file

@ -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');