Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
1.1 kB · 42 lines
PHP
12345678910111213141516171819202122232425262728293031323334353637383940414243<?php
/** * Row scaffold for `1up` (unified) changeset views. * * This scaffold is straightforward. */final class PHUIDiffOneUpInlineCommentRowScaffold extends PHUIDiffInlineCommentRowScaffold {
public function render() { $inlines = $this->getInlineViews(); if (count($inlines) != 1) { throw new Exception( pht('One-up inline row scaffold must have exactly one inline view!')); } $inline = head($inlines);
$attrs = array( 'colspan' => 2, 'id' => $inline->getScaffoldCellID(), );
if ($inline->getIsOnRight()) { $left_hidden = null; $right_hidden = $inline->newHiddenIcon(); } else { $left_hidden = $inline->newHiddenIcon(); $right_hidden = null; }
$cells = array( phutil_tag('td', array('class' => 'n'), $left_hidden), phutil_tag('td', array('class' => 'n'), $right_hidden), phutil_tag('td', array('class' => 'copy')), phutil_tag('td', $attrs, $inline), );
return javelin_tag('tr', $this->getRowAttributes(), $cells); }
}