Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14014108
D15425.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
942 B
Referenced Files
None
Subscribers
None
D15425.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D15425: Phame drafts editable from query results
Attached
Detach File
Event Timeline
Log In to Comment