Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13972856
D19016.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
D19016.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
@@ -75,8 +75,26 @@
->setKey('metadata')
->appendChild($this->buildMetadataProperties($mail)));
+ $header_view = id(new PHUIHeaderView())
+ ->setHeader(pht('Mail'));
+
+ $object_phid = $mail->getRelatedPHID();
+ if ($object_phid) {
+ $handles = $viewer->loadHandles(array($object_phid));
+ $handle = $handles[$object_phid];
+ if ($handle->isComplete() && $handle->getURI()) {
+ $view_button = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setText(pht('View Object'))
+ ->setIcon('fa-chevron-right')
+ ->setHref($handle->getURI());
+
+ $header_view->addActionLink($view_button);
+ }
+ }
+
$object_box = id(new PHUIObjectBoxView())
- ->setHeaderText(pht('Mail'))
+ ->setHeader($header_view)
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
->addTabGroup($tab_group);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 18, 9:33 PM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712818
Default Alt Text
D19016.diff (1 KB)
Attached To
Mode
D19016: Add a "View Object" button on the web mail view page
Attached
Detach File
Event Timeline
Log In to Comment