1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-27 22:19:29 +01:00

Add an ID column to slowvote's list view.

Summary:
Add an ID column to slowvote's list view.

Test Plan:
Suddenly, an ID column was there. :D

Reviewed By: epriestley

Differential Revision: 686
This commit is contained in:
Ricky Elrod 2011-07-17 04:01:38 -04:00 committed by epriestley
parent d2954dae40
commit 3ed0e84a63

View file

@ -58,13 +58,14 @@ class PhabricatorSlowvoteListController
$rows = array(); $rows = array();
foreach ($polls as $poll) { foreach ($polls as $poll) {
$rows[] = array( $rows[] = array(
$handles[$poll->getAuthorPHID()]->renderLink(), 'V'.$poll->getID(),
phutil_render_tag( phutil_render_tag(
'a', 'a',
array( array(
'href' => '/V'.$poll->getID(), 'href' => '/V'.$poll->getID(),
), ),
phutil_escape_html('V'.$poll->getID().' '.$poll->getQuestion())), phutil_escape_html($poll->getQuestion())),
$handles[$poll->getAuthorPHID()]->renderLink(),
phabricator_date($poll->getDateCreated(), $user), phabricator_date($poll->getDateCreated(), $user),
phabricator_time($poll->getDateCreated(), $user), phabricator_time($poll->getDateCreated(), $user),
); );
@ -76,12 +77,14 @@ class PhabricatorSlowvoteListController
'', '',
'pri wide', 'pri wide',
'', '',
'',
'right', 'right',
)); ));
$table->setHeaders( $table->setHeaders(
array( array(
'Author', 'ID',
'Poll', 'Poll',
'Author',
'Date', 'Date',
'Time', 'Time',
)); ));