Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15331872
D15616.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
D15616.diff
View Options
diff --git a/src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php b/src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php
--- a/src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php
+++ b/src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php
@@ -23,7 +23,8 @@
$header = id(new PHUIHeaderView())
->setHeader($title)
->setUser($viewer)
- ->setPolicyObject($mail);
+ ->setPolicyObject($mail)
+ ->setHeaderIcon('fa-envelope');
$status = $mail->getStatus();
$name = PhabricatorMailOutboundStatus::getStatusName($status);
@@ -32,24 +33,26 @@
$header->setStatus($icon, $color, $name);
$crumbs = $this->buildApplicationCrumbs()
- ->addTextCrumb(pht('Mail %d', $mail->getID()));
+ ->addTextCrumb(pht('Mail %d', $mail->getID()))
+ ->setBorder(true);
$object_box = id(new PHUIObjectBoxView())
- ->setHeader($header)
+ ->setHeaderText(pht('Mail'))
+ ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
->addPropertyList($this->buildMessageProperties($mail), pht('Message'))
->addPropertyList($this->buildHeaderProperties($mail), pht('Headers'))
->addPropertyList($this->buildDeliveryProperties($mail), pht('Delivery'))
->addPropertyList($this->buildMetadataProperties($mail), pht('Metadata'));
- return $this->buildApplicationPage(
- array(
- $crumbs,
- $object_box,
- ),
- array(
- 'title' => $title,
- 'pageObjects' => array($mail->getPHID()),
- ));
+ $view = id(new PHUITwoColumnView())
+ ->setHeader($header)
+ ->setFooter($object_box);
+
+ return $this->newPage()
+ ->setTitle($title)
+ ->setCrumbs($crumbs)
+ ->setPageObjectPHIDs(array($mail->getPHID()))
+ ->appendChild($view);
}
private function buildMessageProperties(PhabricatorMetaMTAMail $mail) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 8, 2:48 PM (2 d, 10 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7382843
Default Alt Text
D15616.diff (1 KB)
Attached To
Mode
D15616: Update MetaMTA to new UI
Attached
Detach File
Event Timeline
Log In to Comment