Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUIRemarkupPreviewPanel.php
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | if ($this->header) { | ||||
), | ), | ||||
$this->header); | $this->header); | ||||
} | } | ||||
$preview = phutil_tag( | $preview = phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'id' => $preview_id, | 'id' => $preview_id, | ||||
'class' => 'phabricator-remarkup', | 'class' => 'phabricator-remarkup phui-preview-body', | ||||
), | ), | ||||
$loading); | $loading); | ||||
$content = array($header, $preview); | $content = array($header, $preview); | ||||
return id(new PHUIBoxView()) | return id(new PHUIObjectBoxView()) | ||||
->appendChild($content) | ->appendChild($content) | ||||
->setBorder(true) | ->setCollapsed(true); | ||||
->addMargin(PHUI::MARGIN_LARGE) | |||||
->addPadding(PHUI::PADDING_LARGE) | |||||
->addClass('phui-panel-preview'); | |||||
} | } | ||||
} | } |