Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/controller/PonderQuestionViewController.php
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | if ($viewer->getPHID() == $question->getAuthorPHID()) { | ||||
the question and marking the answer as helpful.')); | the question and marking the answer as helpful.')); | ||||
$object_box->setInfoView($info_view); | $object_box->setInfoView($info_view); | ||||
} | } | ||||
} | } | ||||
$crumbs = $this->buildApplicationCrumbs($this->buildSideNavView()); | $crumbs = $this->buildApplicationCrumbs($this->buildSideNavView()); | ||||
$crumbs->addTextCrumb('Q'.$id, '/Q'.$id); | $crumbs->addTextCrumb('Q'.$id, '/Q'.$id); | ||||
$answer_wiki = null; | |||||
if ($question->getAnswerWiki()) { | |||||
$answer = phutil_tag_div('mlt mlb msr msl', $question->getAnswerWiki()); | |||||
$answer_wiki = id(new PHUIObjectBoxView()) | |||||
->setHeaderText(pht('Answer Summary')) | |||||
->setColor(PHUIObjectBoxView::COLOR_BLUE) | |||||
->appendChild($answer); | |||||
} | |||||
$ponder_view = id(new PHUITwoColumnView()) | $ponder_view = id(new PHUITwoColumnView()) | ||||
->setMainColumn(array( | ->setMainColumn(array( | ||||
$object_box, | $object_box, | ||||
$comment_view, | $comment_view, | ||||
$answer_wiki, | |||||
$answers, | $answers, | ||||
$answer_add_panel, | $answer_add_panel, | ||||
)) | )) | ||||
->setSideColumn($sidebar) | ->setSideColumn($sidebar) | ||||
->addClass('ponder-question-view'); | ->addClass('ponder-question-view'); | ||||
return $this->buildApplicationPage( | return $this->buildApplicationPage( | ||||
array( | array( | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |