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())
|
||||
->setHeader($header)
|
||||
->addPropertyList($properties);
|
||||
->addPropertyList($properties)
|
||||
->addPropertyList($this->buildDocument($engine, $document_body));
|
||||
|
||||
$content = array(
|
||||
$crumbs,
|
||||
$object_box,
|
||||
$this->buildDocument($engine, $document_body),
|
||||
$xaction_view,
|
||||
$add_comment,
|
||||
);
|
||||
|
@ -111,15 +111,13 @@ final class LegalpadDocumentViewController extends LegalpadController {
|
|||
PhabricatorMarkupEngine
|
||||
$engine, LegalpadDocumentBody $body) {
|
||||
|
||||
require_celerity_resource('legalpad-documentbody-css');
|
||||
|
||||
return phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'legalpad-documentbody'
|
||||
),
|
||||
$view = new PHUIPropertyListView();
|
||||
$view->addSectionHeader(pht('Document'));
|
||||
$view->addTextContent(
|
||||
$engine->getOutput($body, LegalpadDocumentBody::MARKUP_FIELD_TEXT));
|
||||
|
||||
return $view;
|
||||
|
||||
}
|
||||
|
||||
private function buildActionView(LegalpadDocument $document) {
|
||||
|
|
Loading…
Reference in a new issue