Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15468869
D16479.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D16479.diff
View Options
diff --git a/src/applications/config/controller/PhabricatorConfigWelcomeController.php b/src/applications/config/controller/PhabricatorConfigWelcomeController.php
--- a/src/applications/config/controller/PhabricatorConfigWelcomeController.php
+++ b/src/applications/config/controller/PhabricatorConfigWelcomeController.php
@@ -317,7 +317,7 @@
$pholio_all_uri));
- $diffusion_uri = PhabricatorEnv::getURI('/diffusion/');
+ $diffusion_uri = PhabricatorEnv::getURI('/diffusion/edit/');
$diffusion_create_uri = PhabricatorEnv::getURI('/diffusion/create/');
$diffusion_all_uri = PhabricatorEnv::getURI('/diffusion/query/all/');
diff --git a/src/applications/home/controller/PhabricatorHomeMainController.php b/src/applications/home/controller/PhabricatorHomeMainController.php
--- a/src/applications/home/controller/PhabricatorHomeMainController.php
+++ b/src/applications/home/controller/PhabricatorHomeMainController.php
@@ -202,6 +202,35 @@
$pager->setPageSize(40);
$results = $engine->executeQuery($query, $pager);
$view = $engine->renderResults($results, $saved);
+ // Low tech NUX.
+ if (!$results && ($viewer->getIsAdmin() == 1)) {
+ $instance = PhabricatorEnv::getEnvConfig('cluster.instance');
+ if (!$instance) {
+ $content = pht(<<<EOT
+Welcome to Phabricator, here are some links to get you started:
+- [[ /config/ | Configure Phabricator ]]
+- [[ /config/welcome/ | Quick Start Guide ]]
+- [[ /diffusion/ | Create a Repository ]]
+- [[ /people/invite/send/ | Invite People ]]
+- [[ https://twitter.com/phabricator/ | Follow us on Twitter ]]
+EOT
+);
+ } else {
+ $content = pht(<<<EOT
+Welcome to Phabricator, here are some links to get you started:
+- [[ /config/welcome/ | Quick Start Guide ]]
+- [[ /diffusion/ | Create a Repository ]]
+- [[ https://twitter.com/phabricator/ | Follow us on Twitter ]]
+EOT
+);
+ }
+ $welcome = new PHUIRemarkupView($viewer, $content);
+
+ $list = new PHUIObjectItemListView();
+ $view = new PhabricatorApplicationSearchResultView();
+ $view->setObjectList($list);
+ $view->setNoDataString($welcome);
+ }
$title = pht('Recent Activity');
$href = '/feed/';
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 5, 7:09 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7362132
Default Alt Text
D16479.diff (2 KB)
Attached To
Mode
D16479: Add a basic first feed story on /home/
Attached
Detach File
Event Timeline
Log In to Comment