1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 09:20:58 +01:00

Add q/a subheaders to ponder

Summary: Helps make it seem more q/a like and consistent.

Test Plan: Look at question

Reviewers: epriestley

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Differential Revision: https://secure.phabricator.com/D7450
This commit is contained in:
Chad Little 2013-10-30 08:10:05 -07:00
parent 29c7de621e
commit 5fdae4b6eb

View file

@ -160,6 +160,7 @@ final class PonderQuestionViewController extends PonderController {
->setCount($question->getVoteCount()) ->setCount($question->getVoteCount())
->setVote($question->getUserVote()); ->setVote($question->getUserVote());
$view->addSectionHeader(pht('Question'));
$view->addTextContent( $view->addTextContent(
array( array(
$votable, $votable,
@ -361,6 +362,7 @@ final class PonderQuestionViewController extends PonderController {
->setCount($answer->getVoteCount()) ->setCount($answer->getVoteCount())
->setVote($answer->getUserVote()); ->setVote($answer->getUserVote());
$view->addSectionHeader(pht('Answer'));
$view->addTextContent( $view->addTextContent(
array( array(
$votable, $votable,