1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52:41 +01:00

Fix Ponder Exception, spacing

Summary: Evidently I only tested adding a question, not an answer. Properly set the getter. Also, fixed some header spacing.

Test Plan: Add a question, add an answer. See everything work, proper spacing.

Reviewers: epriestley, avivey

Reviewed By: avivey

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D15341
This commit is contained in:
Chad Little 2016-02-23 20:30:43 -08:00
parent 03d6e7f1b6
commit be0e84a81a
4 changed files with 15 additions and 5 deletions

View file

@ -92,7 +92,7 @@ return array(
'rsrc/css/application/policy/policy-edit.css' => '815c66f7',
'rsrc/css/application/policy/policy-transaction-detail.css' => '82100a43',
'rsrc/css/application/policy/policy.css' => '957ea14c',
'rsrc/css/application/ponder/ponder-view.css' => 'fdd4629b',
'rsrc/css/application/ponder/ponder-view.css' => '212495e0',
'rsrc/css/application/project/project-card-view.css' => '9418c97d',
'rsrc/css/application/project/project-view.css' => '298b7c5b',
'rsrc/css/application/releeph/releeph-core.css' => '9b3c5733',
@ -855,7 +855,7 @@ return array(
'policy-css' => '957ea14c',
'policy-edit-css' => '815c66f7',
'policy-transaction-detail-css' => '82100a43',
'ponder-view-css' => 'fdd4629b',
'ponder-view-css' => '212495e0',
'project-card-view-css' => '9418c97d',
'project-view-css' => '298b7c5b',
'releeph-core' => '9b3c5733',

View file

@ -322,7 +322,12 @@ final class PonderQuestionViewController extends PonderController {
$header = id(new PHUIHeaderView())
->setHeader('Answers');
return array($header, $view);
return id(new PHUIBoxView())
->addClass('ponder-answer-section')
->appendChild($header)
->appendChild($view);
}
return null;

View file

@ -17,6 +17,7 @@ final class PonderAnswer extends PonderDAO
protected $content;
protected $mailKey;
protected $status;
protected $voteCount;
private $question = self::ATTACHABLE;
private $comments;
@ -34,7 +35,7 @@ final class PonderAnswer extends PonderDAO
->setContent('')
->attachQuestion($question)
->setAuthorPHID($actor->getPHID())
->setVoteCount('0')
->setVoteCount(0)
->setStatus(PonderAnswerStatus::ANSWER_STATUS_VISIBLE);
}

View file

@ -169,7 +169,7 @@
}
.ponder-answer-view .ponder-footer-view {
margin-top: 24px;
margin-top: 16px;
border-top: 1px solid rgba({$alphagrey}, .15);
border-bottom: none;
}
@ -186,6 +186,10 @@ body .phui-main-column .ponder-question-content .ponder-answer-view
display: inline-block;
}
.ponder-answer-section {
margin-top: 32px;
}
.ponder-add-answer-header {
margin-top: 64px;
}