Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15448215
D15579.id37552.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
D15579.id37552.diff
View Options
diff --git a/src/applications/phurl/controller/PhabricatorPhurlURLEditController.php b/src/applications/phurl/controller/PhabricatorPhurlURLEditController.php
--- a/src/applications/phurl/controller/PhabricatorPhurlURLEditController.php
+++ b/src/applications/phurl/controller/PhabricatorPhurlURLEditController.php
@@ -24,6 +24,7 @@
$viewer);
$submit_label = pht('Create');
$page_title = pht('Shorten URL');
+ $header_icon = 'fa-plus-square';
$subscribers = array();
$cancel_uri = $this->getApplicationURI();
} else {
@@ -42,7 +43,8 @@
}
$submit_label = pht('Update');
- $page_title = pht('Update URL');
+ $page_title = pht('Edit URL: %s', $url->getName());
+ $header_icon = 'fa-pencil';
$subscribers = PhabricatorSubscribersQuery::loadSubscribersForPHID(
$url->getPHID());
@@ -238,19 +240,27 @@
}
$crumbs->addTextCrumb($page_title);
+ $crumbs->setBorder(true);
$object_box = id(new PHUIObjectBoxView())
- ->setHeaderText($page_title)
+ ->setHeaderText(pht('URL'))
->setValidationException($validation_exception)
+ ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
->appendChild($form);
- return $this->buildApplicationPage(
- array(
- $crumbs,
+ $header = id(new PHUIHeaderView())
+ ->setHeader($page_title)
+ ->setHeaderIcon($header_icon);
+
+ $view = id(new PHUITwoColumnView())
+ ->setHeader($header)
+ ->setFooter(array(
$object_box,
- ),
- array(
- 'title' => $page_title,
));
+
+ return $this->newPage()
+ ->setTitle($page_title)
+ ->setCrumbs($crumbs)
+ ->appendChild($view);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 29, 3:29 AM (6 d, 7 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7357878
Default Alt Text
D15579.id37552.diff (1 KB)
Attached To
Mode
D15579: Update Phurl Edit page to new UI
Attached
Detach File
Event Timeline
Log In to Comment