Page MenuHomePhabricator

D18531.diff
No OneTemporary

D18531.diff

diff --git a/src/applications/phriction/controller/PhrictionEditController.php b/src/applications/phriction/controller/PhrictionEditController.php
--- a/src/applications/phriction/controller/PhrictionEditController.php
+++ b/src/applications/phriction/controller/PhrictionEditController.php
@@ -195,19 +195,15 @@
}
if ($document->getID()) {
- $panel_header = pht('Edit Document: %s', $content->getTitle());
- $page_title = pht('Edit Document');
- $header_icon = 'fa-pencil';
+ $page_title = pht('Edit Document: %s', $content->getTitle());
if ($overwrite) {
$submit_button = pht('Overwrite Changes');
} else {
$submit_button = pht('Save Changes');
}
} else {
- $panel_header = pht('Create New Phriction Document');
$submit_button = pht('Create Document');
$page_title = pht('Create Document');
- $header_icon = 'fa-plus-square';
}
$uri = $document->getSlug();
@@ -289,9 +285,9 @@
->setValue($submit_button));
$form_box = id(new PHUIObjectBoxView())
- ->setHeaderText(pht('Document'))
+ ->setHeaderText($page_title)
->setValidationException($validation_exception)
- ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
+ ->setBackground(PHUIObjectBoxView::WHITE_CONFIG)
->setForm($form);
$preview = id(new PHUIRemarkupPreviewPanel())
@@ -311,12 +307,7 @@
}
$crumbs->setBorder(true);
- $header = id(new PHUIHeaderView())
- ->setHeader($panel_header)
- ->setHeaderIcon($header_icon);
-
$view = id(new PHUITwoColumnView())
- ->setHeader($header)
->setFooter(array(
$draft_note,
$form_box,

File Metadata

Mime Type
text/plain
Expires
Thu, May 9, 9:30 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6264883
Default Alt Text
D18531.diff (1 KB)

Event Timeline