mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-02 02:40:58 +01:00
Add Document PropertyList item to LegalPad
Summary: Makes Legalpad a little easier to grok. Test Plan: View Document Reviewers: epriestley, btrahan Reviewed By: btrahan CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7460
This commit is contained in:
parent
8babbb92cc
commit
07d25b9640
1 changed files with 7 additions and 9 deletions
|
@ -88,12 +88,12 @@ final class LegalpadDocumentViewController extends LegalpadController {
|
||||||
|
|
||||||
$object_box = id(new PHUIObjectBoxView())
|
$object_box = id(new PHUIObjectBoxView())
|
||||||
->setHeader($header)
|
->setHeader($header)
|
||||||
->addPropertyList($properties);
|
->addPropertyList($properties)
|
||||||
|
->addPropertyList($this->buildDocument($engine, $document_body));
|
||||||
|
|
||||||
$content = array(
|
$content = array(
|
||||||
$crumbs,
|
$crumbs,
|
||||||
$object_box,
|
$object_box,
|
||||||
$this->buildDocument($engine, $document_body),
|
|
||||||
$xaction_view,
|
$xaction_view,
|
||||||
$add_comment,
|
$add_comment,
|
||||||
);
|
);
|
||||||
|
@ -111,15 +111,13 @@ final class LegalpadDocumentViewController extends LegalpadController {
|
||||||
PhabricatorMarkupEngine
|
PhabricatorMarkupEngine
|
||||||
$engine, LegalpadDocumentBody $body) {
|
$engine, LegalpadDocumentBody $body) {
|
||||||
|
|
||||||
require_celerity_resource('legalpad-documentbody-css');
|
$view = new PHUIPropertyListView();
|
||||||
|
$view->addSectionHeader(pht('Document'));
|
||||||
return phutil_tag(
|
$view->addTextContent(
|
||||||
'div',
|
|
||||||
array(
|
|
||||||
'class' => 'legalpad-documentbody'
|
|
||||||
),
|
|
||||||
$engine->getOutput($body, LegalpadDocumentBody::MARKUP_FIELD_TEXT));
|
$engine->getOutput($body, LegalpadDocumentBody::MARKUP_FIELD_TEXT));
|
||||||
|
|
||||||
|
return $view;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function buildActionView(LegalpadDocument $document) {
|
private function buildActionView(LegalpadDocument $document) {
|
||||||
|
|
Loading…
Reference in a new issue