@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add a "View Object" button on the web mail view page

Summary:
Depends on D19015. Ref T13053. Currently, we don't link up hyperlinks in the body of mail viewed in the web UI. We should, but this is a little tricky (see T13053#235074).

As a general improvement to make working with "Must Encrypt" mail less painful, add a big button to jump to the related object.

Test Plan: {F5415990}

Reviewers: amckinley

Maniphest Tasks: T13053

Differential Revision: https://secure.phabricator.com/D19016

+19 -1
+19 -1
src/applications/metamta/controller/PhabricatorMetaMTAMailViewController.php
··· 75 75 ->setKey('metadata') 76 76 ->appendChild($this->buildMetadataProperties($mail))); 77 77 78 + $header_view = id(new PHUIHeaderView()) 79 + ->setHeader(pht('Mail')); 80 + 81 + $object_phid = $mail->getRelatedPHID(); 82 + if ($object_phid) { 83 + $handles = $viewer->loadHandles(array($object_phid)); 84 + $handle = $handles[$object_phid]; 85 + if ($handle->isComplete() && $handle->getURI()) { 86 + $view_button = id(new PHUIButtonView()) 87 + ->setTag('a') 88 + ->setText(pht('View Object')) 89 + ->setIcon('fa-chevron-right') 90 + ->setHref($handle->getURI()); 91 + 92 + $header_view->addActionLink($view_button); 93 + } 94 + } 95 + 78 96 $object_box = id(new PHUIObjectBoxView()) 79 - ->setHeaderText(pht('Mail')) 97 + ->setHeader($header_view) 80 98 ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) 81 99 ->addTabGroup($tab_group); 82 100