From 74682d46ae425eb71258a9ce2b38558cc7e54f91 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 13 Jun 2016 12:00:14 -0700 Subject: [PATCH] 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 --- src/applications/phame/query/PhamePostSearchEngine.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/applications/phame/query/PhamePostSearchEngine.php b/src/applications/phame/query/PhamePostSearchEngine.php index 83f11436ea..dbc248d8b2 100644 --- a/src/applications/phame/query/PhamePostSearchEngine.php +++ b/src/applications/phame/query/PhamePostSearchEngine.php @@ -104,15 +104,19 @@ final class PhamePostSearchEngine if ($post->isDraft()) { $item->setStatusIcon('fa-star-o grey'); $item->setDisabled(true); - $item->addIcon('none', pht('Draft Post')); + $item->addIcon('fa-star-o', pht('Draft Post')); } else if ($post->isArchived()) { $item->setStatusIcon('fa-ban grey'); $item->setDisabled(true); - $item->addIcon('none', pht('Archived Post')); + $item->addIcon('fa-ban', pht('Archived Post')); } else { $date = $post->getDatePublished(); $item->setEpoch($date); } + $item->addAction( + id(new PHUIListItemView()) + ->setIcon('fa-pencil') + ->setHref($post->getEditURI())); $list->addItem($item); }