Differential D12390 Diff 31157 src/applications/transactions/view/PhabricatorApplicationTransactionCommentView.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/view/PhabricatorApplicationTransactionCommentView.php
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | public function setHeaderText($text) { | ||||
return $this; | return $this; | ||||
} | } | ||||
public function render() { | public function render() { | ||||
$user = $this->getUser(); | $user = $this->getUser(); | ||||
if (!$user->isLoggedIn()) { | if (!$user->isLoggedIn()) { | ||||
$uri = id(new PhutilURI('/login/')) | $uri = id(new PhutilURI('/login/')) | ||||
->setQueryParam('next', (string) $this->getRequestURI()); | ->setQueryParam('next', (string)$this->getRequestURI()); | ||||
return id(new PHUIObjectBoxView()) | return id(new PHUIObjectBoxView()) | ||||
->setFlush(true) | ->setFlush(true) | ||||
->setHeaderText(pht('Add Comment')) | ->setHeaderText(pht('Add Comment')) | ||||
->appendChild( | ->appendChild( | ||||
javelin_tag( | javelin_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
'class' => 'login-to-comment button', | 'class' => 'login-to-comment button', | ||||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |