Page MenuHomePhabricator

D8060.id18238.diff
No OneTemporary

D8060.id18238.diff

Index: resources/celerity/map.php
===================================================================
--- resources/celerity/map.php
+++ resources/celerity/map.php
@@ -7,7 +7,7 @@
return array(
'names' =>
array(
- 'core.pkg.css' => '5ad20a3f',
+ 'core.pkg.css' => '63255578',
'core.pkg.js' => 'c907bd96',
'darkconsole.pkg.js' => 'ca8671ce',
'differential.pkg.css' => '5a65a762',
@@ -74,6 +74,7 @@
'rsrc/css/application/flag/flag.css' => '5337623f',
'rsrc/css/application/herald/herald-test.css' => '2b7d0f54',
'rsrc/css/application/herald/herald.css' => '59d48f01',
+ 'rsrc/css/application/legalpad/legalpad-document.css' => 'c60a9d1e',
'rsrc/css/application/maniphest/batch-editor.css' => '78444bc1',
'rsrc/css/application/maniphest/report.css' => '6fc16517',
'rsrc/css/application/maniphest/task-edit.css' => '8e23031b',
@@ -113,7 +114,7 @@
'rsrc/css/application/tokens/tokens.css' => 'fb286311',
'rsrc/css/application/uiexample/example.css' => '4741b891',
'rsrc/css/core/core.css' => 'da26ddb2',
- 'rsrc/css/core/remarkup.css' => 'bec51bf1',
+ 'rsrc/css/core/remarkup.css' => 'ca7f2265',
'rsrc/css/core/syntax.css' => '3c18c1cb',
'rsrc/css/core/z-index.css' => '1bbbd4f1',
'rsrc/css/diviner/diviner-shared.css' => 'be90f718',
@@ -655,6 +656,7 @@
'javelin-view-renderer' => '77461fd6',
'javelin-view-visitor' => 'ca704f2b',
'javelin-workflow' => 'd16edeae',
+ 'legalpad-document-css' => 'c60a9d1e',
'lightbox-attachment-css' => '686f8885',
'maniphest-batch-editor' => '78444bc1',
'maniphest-report-css' => '6fc16517',
@@ -700,7 +702,7 @@
'phabricator-prefab' => '9eaf0bfa',
'phabricator-profile-css' => '3a7e04ca',
'phabricator-project-tag-css' => '095c9404',
- 'phabricator-remarkup-css' => 'bec51bf1',
+ 'phabricator-remarkup-css' => 'ca7f2265',
'phabricator-search-results-css' => 'f240504c',
'phabricator-settings-css' => 'ea8f5915',
'phabricator-shaped-request' => 'dfa181a4',
Index: src/applications/legalpad/controller/LegalpadDocumentSignController.php
===================================================================
--- src/applications/legalpad/controller/LegalpadDocumentSignController.php
+++ src/applications/legalpad/controller/LegalpadDocumentSignController.php
@@ -177,9 +177,10 @@
->setHeader($title);
$content = array(
- id(new PHUIDocumentView())
- ->setHeader($header)
- ->appendChild($this->buildDocument($engine, $document_body)),
+ $this->buildDocument(
+ $header,
+ $engine,
+ $document_body),
$this->buildSignatureForm(
$document_body,
$signature,
@@ -199,10 +200,17 @@
}
private function buildDocument(
- PhabricatorMarkupEngine
- $engine, LegalpadDocumentBody $body) {
+ PHUIHeaderView $header,
+ PhabricatorMarkupEngine $engine,
+ LegalpadDocumentBody $body) {
- return $engine->getOutput($body, LegalpadDocumentBody::MARKUP_FIELD_TEXT);
+ require_celerity_resource('legalpad-document-css');
+ return id(new PHUIDocumentView())
+ ->addClass('legalpad')
+ ->setHeader($header)
+ ->appendChild($engine->getOutput(
+ $body,
+ LegalpadDocumentBody::MARKUP_FIELD_TEXT));
}
private function buildSignatureForm(
Index: src/applications/legalpad/controller/LegalpadDocumentViewController.php
===================================================================
--- src/applications/legalpad/controller/LegalpadDocumentViewController.php
+++ src/applications/legalpad/controller/LegalpadDocumentViewController.php
@@ -110,7 +110,9 @@
PhabricatorMarkupEngine
$engine, LegalpadDocumentBody $body) {
+ require_celerity_resource('legalpad-document-css');
$view = new PHUIPropertyListView();
+ $view->addClass('legalpad');
$view->addSectionHeader(pht('Document'));
$view->addTextContent(
$engine->getOutput($body, LegalpadDocumentBody::MARKUP_FIELD_TEXT));
Index: webroot/rsrc/css/application/legalpad/legalpad-document.css
===================================================================
--- /dev/null
+++ webroot/rsrc/css/application/legalpad/legalpad-document.css
@@ -0,0 +1,18 @@
+/**
+ * @provides legalpad-document-css
+ */
+
+.legalpad .phabricator-remarkup .remarkup-note {
+ border-radius: .725em;
+ -moz-border-radius: .725em;
+}
+
+.legalpad .phabricator-remarkup .remarkup-warning {
+ border-radius: .725em;
+ -moz-border-radius: .725em;
+}
+
+.legalpad .phabricator-remarkup .remarkup-important {
+ border-radius: .725em;
+ -moz-border-radius: .725em;
+}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 11, 1:57 AM (3 d, 2 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6764648
Default Alt Text
D8060.id18238.diff (4 KB)

Event Timeline