@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 edit-pencil to ApplicationSearch for PhamePosts

Summary: Adds a quick edit link to PhamePosts in ApplicationSearch

Test Plan: Review a few searches, click on pencil.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+6 -2
+6 -2
src/applications/phame/query/PhamePostSearchEngine.php
··· 104 104 if ($post->isDraft()) { 105 105 $item->setStatusIcon('fa-star-o grey'); 106 106 $item->setDisabled(true); 107 - $item->addIcon('none', pht('Draft Post')); 107 + $item->addIcon('fa-star-o', pht('Draft Post')); 108 108 } else if ($post->isArchived()) { 109 109 $item->setStatusIcon('fa-ban grey'); 110 110 $item->setDisabled(true); 111 - $item->addIcon('none', pht('Archived Post')); 111 + $item->addIcon('fa-ban', pht('Archived Post')); 112 112 } else { 113 113 $date = $post->getDatePublished(); 114 114 $item->setEpoch($date); 115 115 } 116 + $item->addAction( 117 + id(new PHUIListItemView()) 118 + ->setIcon('fa-pencil') 119 + ->setHref($post->getEditURI())); 116 120 $list->addItem($item); 117 121 } 118 122