Page MenuHomePhabricator

D15425.diff
No OneTemporary

D15425.diff

diff --git a/src/applications/phame/query/PhamePostSearchEngine.php b/src/applications/phame/query/PhamePostSearchEngine.php
--- a/src/applications/phame/query/PhamePostSearchEngine.php
+++ b/src/applications/phame/query/PhamePostSearchEngine.php
@@ -97,9 +97,14 @@
->setHref($post->getViewURI())
->addAttribute($blog_name);
if ($post->isDraft()) {
- $item->setStatusIcon('fa-star-o grey');
- $item->setDisabled(true);
- $item->addIcon('none', pht('Draft Post'));
+ $button = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setText(pht('Edit Draft'))
+ ->setHref($post->getEditURI())
+ ->setColor(PHUIButtonView::GREY);
+ $item->setStatusIcon('fa-star-o grey');
+ $item->setDisabled(true);
+ $item->setLaunchButton($button);
} else {
$date = $post->getDatePublished();
$item->setEpoch($date);

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 3, 10:17 PM (1 d, 15 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6743143
Default Alt Text
D15425.diff (942 B)

Event Timeline