Move non-comment transactions to a separate history view in Ponder
Summary: Ref T3373. Most edits aren't too interesting, put them on a separate history page. Test Plan: Viewed question page; viewed history page for question and answer. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T3373 Differential Revision: https://secure.phabricator.com/D6612
This commit is contained in:
@@ -113,6 +113,12 @@ final class PonderQuestionViewController extends PonderController {
|
||||
->setDisabled(!$can_edit)
|
||||
->setHref($this->getApplicationURI("/question/{$href}/{$id}/")));
|
||||
|
||||
$view->addAction(
|
||||
id(new PhabricatorActionView())
|
||||
->setIcon('transcript')
|
||||
->setName(pht('View History'))
|
||||
->setHref($this->getApplicationURI("/question/history/{$id}/")));
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
||||
@@ -156,6 +162,7 @@ final class PonderQuestionViewController extends PonderController {
|
||||
|
||||
$xactions = id(new PonderQuestionTransactionQuery())
|
||||
->setViewer($viewer)
|
||||
->withTransactionTypes(array(PhabricatorTransactions::TYPE_COMMENT))
|
||||
->withObjectPHIDs(array($question->getPHID()))
|
||||
->execute();
|
||||
|
||||
@@ -200,6 +207,7 @@ final class PonderQuestionViewController extends PonderController {
|
||||
|
||||
$xactions = id(new PonderAnswerTransactionQuery())
|
||||
->setViewer($viewer)
|
||||
->withTransactionTypes(array(PhabricatorTransactions::TYPE_COMMENT))
|
||||
->withObjectPHIDs(mpull($answers, 'getPHID'))
|
||||
->execute();
|
||||
|
||||
@@ -274,6 +282,12 @@ final class PonderQuestionViewController extends PonderController {
|
||||
->setDisabled(!$can_edit)
|
||||
->setWorkflow(!$can_edit));
|
||||
|
||||
$view->addAction(
|
||||
id(new PhabricatorActionView())
|
||||
->setIcon('transcript')
|
||||
->setName(pht('View History'))
|
||||
->setHref($this->getApplicationURI("/answer/history/{$id}/")));
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user