Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F89984
D7460.id16795.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7460.id16795.diff
View Options
diff --git a/src/applications/legalpad/controller/LegalpadDocumentViewController.php b/src/applications/legalpad/controller/LegalpadDocumentViewController.php
--- a/src/applications/legalpad/controller/LegalpadDocumentViewController.php
+++ b/src/applications/legalpad/controller/LegalpadDocumentViewController.php
@@ -88,12 +88,12 @@
$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 @@
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) {
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/vp/32/4tiqfc2ag5nrwr5p
Default Alt Text
D7460.id16795.diff (1 KB)
Attached To
Mode
D7460: Add Document PropertyList item to LegalPad
Attached
Detach File
Event Timeline
Log In to Comment