Remove product literal strings in "pht()", part 25
[phabricator.git] / src / applications / releeph / controller / branch / ReleephBranchHistoryController.php
blob5a07a5c879b550aa03d8be416453ab331930205e
1 <?php
3 final class ReleephBranchHistoryController extends ReleephBranchController {
5 public function shouldAllowPublic() {
6 return true;
9 public function handleRequest(AphrontRequest $request) {
10 $viewer = $request->getViewer();
11 $id = $request->getURIData('branchID');
13 $branch = id(new ReleephBranchQuery())
14 ->setViewer($viewer)
15 ->withIDs(array($id))
16 ->executeOne();
17 if (!$branch) {
18 return new Aphront404Response();
20 $this->setBranch($branch);
22 $timeline = $this->buildTransactionTimeline(
23 $branch,
24 new ReleephBranchTransactionQuery());
25 $timeline
26 ->setShouldTerminate(true);
28 $crumbs = $this->buildApplicationCrumbs();
29 $crumbs->addTextCrumb(pht('History'));
30 $crumbs->setBorder(true);
32 $title = pht('Branch History');
34 return $this->newPage()
35 ->setTitle($title)
36 ->setCrumbs($crumbs)
37 ->appendChild($timeline);