Differential D21257 Diff 50619 src/applications/differential/render/DifferentialChangesetOneUpRenderer.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/render/DifferentialChangesetOneUpRenderer.php
| Show All 39 Lines | protected function renderPrimitives(array $primitives, $rows) { | ||||
| $no_coverage = null; | $no_coverage = null; | ||||
| $column_width = 4; | $column_width = 4; | ||||
| $aural_minus = javelin_tag( | $aural_minus = javelin_tag( | ||||
| 'span', | 'span', | ||||
| array( | array( | ||||
| 'aural' => true, | 'aural' => true, | ||||
| 'data-aural' => true, | |||||
| ), | ), | ||||
| '- '); | '- '); | ||||
| $aural_plus = javelin_tag( | $aural_plus = javelin_tag( | ||||
| 'span', | 'span', | ||||
| array( | array( | ||||
| 'aural' => true, | 'aural' => true, | ||||
| 'data-aural' => true, | |||||
| ), | ), | ||||
| '+ '); | '+ '); | ||||
| $out = array(); | $out = array(); | ||||
| foreach ($primitives as $k => $p) { | foreach ($primitives as $k => $p) { | ||||
| $type = $p['type']; | $type = $p['type']; | ||||
| switch ($type) { | switch ($type) { | ||||
| case 'old': | case 'old': | ||||
| ▲ Show 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | foreach ($primitives as $k => $p) { | ||||
| )); | )); | ||||
| $render = $p['render']; | $render = $p['render']; | ||||
| if ($aural !== null) { | if ($aural !== null) { | ||||
| $render = array($aural, $render); | $render = array($aural, $render); | ||||
| } | } | ||||
| $cells[] = $no_copy; | $cells[] = $no_copy; | ||||
| $cells[] = phutil_tag('td', array('class' => $class), $render); | |||||
| $cells[] = phutil_tag( | |||||
| 'td', | |||||
| array( | |||||
| 'class' => $class, | |||||
| 'data-copy-mode' => 'copy-unified', | |||||
| ), | |||||
| $render); | |||||
| $cells[] = $no_coverage; | $cells[] = $no_coverage; | ||||
| } | } | ||||
| $out[] = phutil_tag('tr', array(), $cells); | $out[] = phutil_tag('tr', array(), $cells); | ||||
| break; | break; | ||||
| case 'inline': | case 'inline': | ||||
| $inline = $this->buildInlineComment( | $inline = $this->buildInlineComment( | ||||
| ▲ Show 20 Lines • Show All 299 Lines • Show Last 20 Lines | |||||