Differential D20154 Diff 48161 src/applications/conpherence/controller/ConpherenceViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/controller/ConpherenceViewController.php
Show First 20 Lines • Show All 182 Lines • ▼ Show 20 Lines | if ($user->isLoggedIn()) { | ||||
$view = phutil_tag_div( | $view = phutil_tag_div( | ||||
'pontificate-container', array($form, $status_view)); | 'pontificate-container', array($form, $status_view)); | ||||
return $view; | return $view; | ||||
} else { | } else { | ||||
// user not logged in so give them a login button. | // user not logged in so give them a login button. | ||||
$login_href = id(new PhutilURI('/auth/start/')) | $login_href = id(new PhutilURI('/auth/start/')) | ||||
->setQueryParam('next', '/'.$conpherence->getMonogram()); | ->replaceQueryParam('next', '/'.$conpherence->getMonogram()); | ||||
return id(new PHUIFormLayoutView()) | return id(new PHUIFormLayoutView()) | ||||
->addClass('login-to-participate') | ->addClass('login-to-participate') | ||||
->appendInstructions(pht('Log in to join this room and participate.')) | ->appendInstructions(pht('Log in to join this room and participate.')) | ||||
->appendChild( | ->appendChild( | ||||
id(new PHUIButtonView()) | id(new PHUIButtonView()) | ||||
->setTag('a') | ->setTag('a') | ||||
->setText(pht('Log In to Participate')) | ->setText(pht('Log In to Participate')) | ||||
->setHref((string)$login_href)); | ->setHref((string)$login_href)); | ||||
Show All 12 Lines |