Use new DocumentView for Legalpad previews
Summary: Moves to showing Legalpad previews using PHUIDocumentViewPro Test Plan: Create a new document, edit an existing document Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D14550
This commit is contained in:
@@ -143,7 +143,7 @@ return array(
|
|||||||
'rsrc/css/phui/phui-pager.css' => 'bea33d23',
|
'rsrc/css/phui/phui-pager.css' => 'bea33d23',
|
||||||
'rsrc/css/phui/phui-pinboard-view.css' => '2495140e',
|
'rsrc/css/phui/phui-pinboard-view.css' => '2495140e',
|
||||||
'rsrc/css/phui/phui-property-list-view.css' => '27b2849e',
|
'rsrc/css/phui/phui-property-list-view.css' => '27b2849e',
|
||||||
'rsrc/css/phui/phui-remarkup-preview.css' => '867f85b3',
|
'rsrc/css/phui/phui-remarkup-preview.css' => '1a8f2591',
|
||||||
'rsrc/css/phui/phui-spacing.css' => '042804d6',
|
'rsrc/css/phui/phui-spacing.css' => '042804d6',
|
||||||
'rsrc/css/phui/phui-status.css' => '888cedb8',
|
'rsrc/css/phui/phui-status.css' => '888cedb8',
|
||||||
'rsrc/css/phui/phui-tag-view.css' => 'e60e227b',
|
'rsrc/css/phui/phui-tag-view.css' => 'e60e227b',
|
||||||
@@ -808,7 +808,7 @@ return array(
|
|||||||
'phui-pager-css' => 'bea33d23',
|
'phui-pager-css' => 'bea33d23',
|
||||||
'phui-pinboard-view-css' => '2495140e',
|
'phui-pinboard-view-css' => '2495140e',
|
||||||
'phui-property-list-view-css' => '27b2849e',
|
'phui-property-list-view-css' => '27b2849e',
|
||||||
'phui-remarkup-preview-css' => '867f85b3',
|
'phui-remarkup-preview-css' => '1a8f2591',
|
||||||
'phui-spacing-css' => '042804d6',
|
'phui-spacing-css' => '042804d6',
|
||||||
'phui-status-list-view-css' => '888cedb8',
|
'phui-status-list-view-css' => '888cedb8',
|
||||||
'phui-tag-view-css' => 'e60e227b',
|
'phui-tag-view-css' => 'e60e227b',
|
||||||
|
|||||||
@@ -243,10 +243,10 @@ final class LegalpadDocumentEditController extends LegalpadController {
|
|||||||
$crumbs->addTextCrumb($short);
|
$crumbs->addTextCrumb($short);
|
||||||
|
|
||||||
$preview = id(new PHUIRemarkupPreviewPanel())
|
$preview = id(new PHUIRemarkupPreviewPanel())
|
||||||
->setHeader(pht('Document Preview'))
|
->setHeader($document->getTitle())
|
||||||
->setPreviewURI($this->getApplicationURI('document/preview/'))
|
->setPreviewURI($this->getApplicationURI('document/preview/'))
|
||||||
->setControlID('document-text')
|
->setControlID('document-text')
|
||||||
->addClass('phui-document-view');
|
->setPreviewType(PHUIRemarkupPreviewPanel::DOCUMENT);
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->buildApplicationPage(
|
||||||
array(
|
array(
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
* <div /> or not. It should probably move to the Engine in all cases, but
|
* <div /> or not. It should probably move to the Engine in all cases, but
|
||||||
* until we do that get rid of the extra spacing generated by the inner div.
|
* until we do that get rid of the extra spacing generated by the inner div.
|
||||||
*/
|
*/
|
||||||
.phui-remarkup-preview .phabricator-remarkup .phabricator-remarkup {
|
body .phui-remarkup-preview .phabricator-remarkup .phabricator-remarkup {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user