mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
Show snippet of vote description in vote summary
Summary: This is editable now. Test Plan: {F50208} Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D6462
This commit is contained in:
parent
84d157f16a
commit
0a3c03d5b6
1 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,11 @@ final class PhabricatorSlowvoteListController
|
|||
->setHref('/V'.$poll->getID())
|
||||
->addIcon('none', $date_created);
|
||||
|
||||
$description = $poll->getDescription();
|
||||
if (strlen($description)) {
|
||||
$item->addAttribute(phutil_utf8_shorten($poll->getDescription(), 120));
|
||||
}
|
||||
|
||||
if ($author) {
|
||||
$item->addByline(pht('Author: %s', $author));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue