Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14066276
D15568.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
D15568.diff
View Options
diff --git a/src/applications/macro/controller/PhabricatorMacroEditController.php b/src/applications/macro/controller/PhabricatorMacroEditController.php
--- a/src/applications/macro/controller/PhabricatorMacroEditController.php
+++ b/src/applications/macro/controller/PhabricatorMacroEditController.php
@@ -233,16 +233,19 @@
$crumbs = $this->buildApplicationCrumbs();
if ($macro->getID()) {
- $title = pht('Edit Image Macro');
+ $title = pht('Edit Macro: %s', $macro->getName());
$crumb = pht('Edit Macro');
+ $header_icon = 'fa-pencil';
- $crumbs->addTextCrumb(pht('Macro "%s"', $macro->getName()), $view_uri);
+ $crumbs->addTextCrumb(pht('Macro: %s', $macro->getName()), $view_uri);
} else {
$title = pht('Create Image Macro');
$crumb = pht('Create Macro');
+ $header_icon = 'fa-plus-square';
}
$crumbs->addTextCrumb($crumb, $request->getRequestURI());
+ $crumbs->setBorder(true);
$upload = null;
if ($macro->getID()) {
@@ -267,23 +270,32 @@
$upload = id(new PHUIObjectBoxView())
->setHeaderText(pht('Upload New File'))
+ ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
->setForm($upload_form);
}
$form_box = id(new PHUIObjectBoxView())
- ->setHeaderText($title)
+ ->setHeaderText(pht('Macro'))
->setFormErrors($errors)
+ ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
->setForm($form);
- return $this->buildApplicationPage(
- array(
- $crumbs,
+ $header = id(new PHUIHeaderView())
+ ->setHeader($title)
+ ->setHeaderIcon($header_icon);
+
+ $view = id(new PHUITwoColumnView())
+ ->setHeader($header)
+ ->setFooter(array(
$form_box,
$upload,
- ),
- array(
- 'title' => $title,
));
+
+ return $this->newPage()
+ ->setTitle($title)
+ ->setCrumbs($crumbs)
+ ->appendChild($view);
+
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 9:06 AM (7 h, 26 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6737037
Default Alt Text
D15568.diff (1 KB)
Attached To
Mode
D15568: Update Macro Edit for new UI
Attached
Detach File
Event Timeline
Log In to Comment