1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02:42 +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:
epriestley 2013-07-15 11:10:47 -07:00
parent 84d157f16a
commit 0a3c03d5b6

View file

@ -53,6 +53,11 @@ final class PhabricatorSlowvoteListController
->setHref('/V'.$poll->getID()) ->setHref('/V'.$poll->getID())
->addIcon('none', $date_created); ->addIcon('none', $date_created);
$description = $poll->getDescription();
if (strlen($description)) {
$item->addAttribute(phutil_utf8_shorten($poll->getDescription(), 120));
}
if ($author) { if ($author) {
$item->addByline(pht('Author: %s', $author)); $item->addByline(pht('Author: %s', $author));
} }