Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15409897
D7460.id16795.diff
No One
Temporary
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
Index: src/applications/legalpad/controller/LegalpadDocumentViewController.php
===================================================================
--- src/applications/legalpad/controller/LegalpadDocumentViewController.php
+++ 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/plain
Expires
Thu, Mar 20, 5:51 AM (5 d, 9 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7708288
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