Differential D21433 Diff 51003 src/applications/differential/render/DifferentialChangesetOneUpRenderer.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/render/DifferentialChangesetOneUpRenderer.php
| Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | foreach ($primitives as $k => $p) { | ||||
| case 'new': | case 'new': | ||||
| case 'old-file': | case 'old-file': | ||||
| case 'new-file': | case 'new-file': | ||||
| $is_old = ($type == 'old' || $type == 'old-file'); | $is_old = ($type == 'old' || $type == 'old-file'); | ||||
| $cells = array(); | $cells = array(); | ||||
| if ($is_old) { | if ($is_old) { | ||||
| if ($p['htype']) { | if ($p['htype']) { | ||||
| if (empty($p['oline'])) { | if ($p['htype'] === '\\') { | ||||
| $class = 'comment'; | |||||
| } else if (empty($p['oline'])) { | |||||
| $class = 'left old old-full'; | $class = 'left old old-full'; | ||||
| } else { | } else { | ||||
| $class = 'left old'; | $class = 'left old'; | ||||
| } | } | ||||
| $aural = $aural_minus; | $aural = $aural_minus; | ||||
| } else { | } else { | ||||
| $class = 'left'; | $class = 'left'; | ||||
| $aural = null; | $aural = null; | ||||
| Show All 29 Lines | foreach ($primitives as $k => $p) { | ||||
| array( | array( | ||||
| 'class' => $class.' n', | 'class' => $class.' n', | ||||
| )); | )); | ||||
| $cells[] = $no_copy; | $cells[] = $no_copy; | ||||
| $cells[] = phutil_tag('td', array('class' => $class), $render); | $cells[] = phutil_tag('td', array('class' => $class), $render); | ||||
| $cells[] = $no_coverage; | $cells[] = $no_coverage; | ||||
| } else { | } else { | ||||
| if ($p['htype']) { | if ($p['htype']) { | ||||
| if (empty($p['oline'])) { | if ($p['htype'] === '\\') { | ||||
| $class = 'comment'; | |||||
| } else if (empty($p['oline'])) { | |||||
| $class = 'right new new-full'; | $class = 'right new new-full'; | ||||
| } else { | } else { | ||||
| $class = 'right new'; | $class = 'right new'; | ||||
| } | } | ||||
| $cells[] = phutil_tag( | $cells[] = phutil_tag( | ||||
| 'td', | 'td', | ||||
| array( | array( | ||||
| 'class' => $class.' n', | 'class' => $class.' n', | ||||
| ▲ Show 20 Lines • Show All 386 Lines • Show Last 20 Lines | |||||