Differential D16004 Diff 38526 src/applications/config/controller/PhabricatorConfigWelcomeController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/controller/PhabricatorConfigWelcomeController.php
| Show First 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | public function buildWelcomeScreen(AphrontRequest $request) { | ||||
| } | } | ||||
| $setup[] = $this->newItem( | $setup[] = $this->newItem( | ||||
| $request, | $request, | ||||
| $icon, | $icon, | ||||
| $content); | $content); | ||||
| $settings_href = PhabricatorEnv::getURI('/settings/'); | $settings_href = PhabricatorEnv::getURI('/settings/'); | ||||
| $prefs = $viewer->loadPreferences()->getPreferences(); | |||||
| $have_settings = !empty($prefs); | $preferences = id(new PhabricatorUserPreferencesQuery()) | ||||
| ->setViewer($viewer) | |||||
| ->withUsers(array($viewer)) | |||||
| ->executeOne(); | |||||
| $have_settings = ($preferences && $preferences->getPreferences()); | |||||
| if ($have_settings) { | if ($have_settings) { | ||||
| $content = pht( | $content = pht( | ||||
| "=== Adjust Account Settings ===\n\n". | "=== Adjust Account Settings ===\n\n". | ||||
| "You've adjusted at least one setting on your account. ". | "You've adjusted at least one setting on your account. ". | ||||
| "To make more adjustments, visit the ". | "To make more adjustments, visit the ". | ||||
| "**[[ %s | Settings Application ]]**.", | "**[[ %s | Settings Application ]]**.", | ||||
| $settings_href); | $settings_href); | ||||
| $icon = 'fa-check-square-o green'; | $icon = 'fa-check-square-o green'; | ||||
| ▲ Show 20 Lines • Show All 248 Lines • Show Last 20 Lines | |||||