mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 03:50:54 +01:00
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
This commit is contained in:
parent
63d413e201
commit
74682d46ae
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue