Differential D14073 Diff 34741 src/applications/releeph/field/specification/ReleephDiffSizeFieldSpecification.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/field/specification/ReleephDiffSizeFieldSpecification.php
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | if ($mr_changes['tests']['paths']) { | ||||
Javelin::initBehavior('phabricator-tooltips'); | Javelin::initBehavior('phabricator-tooltips'); | ||||
require_celerity_resource('aphront-tooltip-css'); | require_celerity_resource('aphront-tooltip-css'); | ||||
$test_blurb = pht( | $test_blurb = pht( | ||||
"%d line(s) and %d path(s) contain changes to test code:\n", | "%d line(s) and %d path(s) contain changes to test code:\n", | ||||
$mr_changes['tests']['lines'], | $mr_changes['tests']['lines'], | ||||
count($mr_changes['tests']['paths'])); | count($mr_changes['tests']['paths'])); | ||||
foreach ($mr_changes['tests']['paths'] as $mr_test_path) { | foreach ($mr_changes['tests']['paths'] as $mr_test_path) { | ||||
$test_blurb .= pht("%s\n", $mr_test_path); | $test_blurb .= sprintf("%s\n", $mr_test_path); | ||||
} | } | ||||
$test_tag = javelin_tag( | $test_tag = javelin_tag( | ||||
'span', | 'span', | ||||
array( | array( | ||||
'sigil' => 'has-tooltip', | 'sigil' => 'has-tooltip', | ||||
'meta' => array( | 'meta' => array( | ||||
'tip' => $test_blurb, | 'tip' => $test_blurb, | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |