@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.

Make Legalpad documents have a little document icon in typeaheads

Summary: Ref T3116.

Test Plan: See screenshot.

Reviewers: chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T3116

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

+4 -4
+4 -4
src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php
··· 264 264 $documents = id(new LegalpadDocumentQuery()) 265 265 ->setViewer($viewer) 266 266 ->execute(); 267 - $documents = mpull($documents, 'getTitle', 'getPHID'); 268 - foreach ($documents as $phid => $title) { 267 + foreach ($documents as $document) { 269 268 $results[] = id(new PhabricatorTypeaheadResult()) 270 - ->setPHID($phid) 271 - ->setName($title); 269 + ->setPHID($document->getPHID()) 270 + ->setIcon('fa-file-text-o') 271 + ->setName($document->getMonogram().' '.$document->getTitle()); 272 272 } 273 273 } 274 274