Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionController.php
| Show First 20 Lines • Show All 311 Lines • ▼ Show 20 Lines | abstract class DiffusionController extends PhabricatorController { | ||||
| protected function renderStatusMessage($title, $body) { | protected function renderStatusMessage($title, $body) { | ||||
| return id(new PHUIInfoView()) | return id(new PHUIInfoView()) | ||||
| ->setSeverity(PHUIInfoView::SEVERITY_WARNING) | ->setSeverity(PHUIInfoView::SEVERITY_WARNING) | ||||
| ->setTitle($title) | ->setTitle($title) | ||||
| ->setFlush(true) | ->setFlush(true) | ||||
| ->appendChild($body); | ->appendChild($body); | ||||
| } | } | ||||
| protected function renderTablePagerBox(PHUIPagerView $pager) { | |||||
| return id(new PHUIBoxView()) | |||||
| ->addMargin(PHUI::MARGIN_LARGE) | |||||
| ->appendChild($pager); | |||||
| } | |||||
| protected function renderCommitHashTag(DiffusionRequest $drequest) { | protected function renderCommitHashTag(DiffusionRequest $drequest) { | ||||
| $stable_commit = $drequest->getStableCommit(); | $stable_commit = $drequest->getStableCommit(); | ||||
| $commit = phutil_tag( | $commit = phutil_tag( | ||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| 'href' => $drequest->generateURI( | 'href' => $drequest->generateURI( | ||||
| array( | array( | ||||
| 'action' => 'commit', | 'action' => 'commit', | ||||
| ▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines | |||||