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.
775 B · 34 lines
PHP
at commit 2cc898a6
1234567891011121314151617181920212223242526272829303132333435<?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' => 3, 'class' => 'right3', 'id' => $inline->getScaffoldCellID(), );
$cells = array( phutil_tag('th', array()), phutil_tag('th', array()), phutil_tag('td', $attrs, $inline), );
return phutil_tag('tr', $this->getRowAttributes(), $cells); }
}