Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/PhabricatorAuthController.php
Show First 20 Lines • Show All 248 Lines • ▼ Show 20 Lines | protected function renderInviteHeader(PhabricatorAuthInvite $invite) { | ||||
// If we can't load the author for some reason, just drop this message. | // If we can't load the author for some reason, just drop this message. | ||||
// We lose the value of contextualizing things without author details. | // We lose the value of contextualizing things without author details. | ||||
if (!$invite_author) { | if (!$invite_author) { | ||||
return null; | return null; | ||||
} | } | ||||
$invite_item = id(new PHUIObjectItemView()) | $invite_item = id(new PHUIObjectItemView()) | ||||
->setHeader(pht('Welcome to Phabricator!')) | ->setHeader(pht('Welcome to %s!', PhabricatorPlatformSite::getName())) | ||||
->setImageURI($invite_author->getProfileImageURI()) | ->setImageURI($invite_author->getProfileImageURI()) | ||||
->addAttribute( | ->addAttribute( | ||||
pht( | pht( | ||||
'%s has invited you to join Phabricator.', | '%s has invited you to join %s.', | ||||
$invite_author->getFullName())); | $invite_author->getFullName(), | ||||
PhabricatorPlatformSite::getName())); | |||||
$invite_list = id(new PHUIObjectItemListView()) | $invite_list = id(new PHUIObjectItemListView()) | ||||
->addItem($invite_item) | ->addItem($invite_item) | ||||
->setFlush(true); | ->setFlush(true); | ||||
return id(new PHUIBoxView()) | return id(new PHUIBoxView()) | ||||
->addMargin(PHUI::MARGIN_LARGE) | ->addMargin(PHUI::MARGIN_LARGE) | ||||
->appendChild($invite_list); | ->appendChild($invite_list); | ||||
Show All 25 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0