Page MenuHomePhabricator

D14840.diff
No OneTemporary

D14840.diff

diff --git a/src/applications/countdown/application/PhabricatorCountdownApplication.php b/src/applications/countdown/application/PhabricatorCountdownApplication.php
--- a/src/applications/countdown/application/PhabricatorCountdownApplication.php
+++ b/src/applications/countdown/application/PhabricatorCountdownApplication.php
@@ -48,6 +48,8 @@
=> 'PhabricatorCountdownCommentController',
'edit/(?:(?P<id>[1-9]\d*)/)?'
=> 'PhabricatorCountdownEditController',
+ 'create/'
+ => 'PhabricatorCountdownEditController',
'delete/(?P<id>[1-9]\d*)/'
=> 'PhabricatorCountdownDeleteController',
),
diff --git a/src/applications/countdown/controller/PhabricatorCountdownController.php b/src/applications/countdown/controller/PhabricatorCountdownController.php
--- a/src/applications/countdown/controller/PhabricatorCountdownController.php
+++ b/src/applications/countdown/controller/PhabricatorCountdownController.php
@@ -13,7 +13,7 @@
$crumbs->addAction(
id(new PHUIListItemView())
->setName(pht('Create Countdown'))
- ->setHref($this->getApplicationURI('edit/'))
+ ->setHref($this->getApplicationURI('create/'))
->setIcon('fa-plus-square'));
return $crumbs;
diff --git a/src/applications/countdown/query/PhabricatorCountdownSearchEngine.php b/src/applications/countdown/query/PhabricatorCountdownSearchEngine.php
--- a/src/applications/countdown/query/PhabricatorCountdownSearchEngine.php
+++ b/src/applications/countdown/query/PhabricatorCountdownSearchEngine.php
@@ -145,4 +145,24 @@
return $result;
}
+ protected function getNewUserBody() {
+ $create_button = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setText(pht('Create a Countdown'))
+ ->setHref('/countdown/create/')
+ ->setColor(PHUIButtonView::GREEN);
+
+ $icon = $this->getApplication()->getFontIcon();
+ $app_name = $this->getApplication()->getName();
+ $view = id(new PHUIBigInfoView())
+ ->setIcon($icon)
+ ->setTitle(pht('Welcome to %s', $app_name))
+ ->setDescription(
+ pht('Keep track of upcoming launch dates with '.
+ 'embeddable counters.'))
+ ->addAction($create_button);
+
+ return $view;
+ }
+
}
diff --git a/src/applications/macro/query/PhabricatorMacroSearchEngine.php b/src/applications/macro/query/PhabricatorMacroSearchEngine.php
--- a/src/applications/macro/query/PhabricatorMacroSearchEngine.php
+++ b/src/applications/macro/query/PhabricatorMacroSearchEngine.php
@@ -189,4 +189,23 @@
return $result;
}
+ protected function getNewUserBody() {
+ $create_button = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setText(pht('Create a Macro'))
+ ->setHref('/macro/create/')
+ ->setColor(PHUIButtonView::GREEN);
+
+ $icon = $this->getApplication()->getFontIcon();
+ $app_name = $this->getApplication()->getName();
+ $view = id(new PHUIBigInfoView())
+ ->setIcon($icon)
+ ->setTitle(pht('Welcome to %s', $app_name))
+ ->setDescription(
+ pht('Create easy to remember shortcuts to images and memes.'))
+ ->addAction($create_button);
+
+ return $view;
+ }
+
}
diff --git a/src/applications/paste/query/PhabricatorPasteSearchEngine.php b/src/applications/paste/query/PhabricatorPasteSearchEngine.php
--- a/src/applications/paste/query/PhabricatorPasteSearchEngine.php
+++ b/src/applications/paste/query/PhabricatorPasteSearchEngine.php
@@ -202,4 +202,23 @@
return $result;
}
+
+ protected function getNewUserBody() {
+ $create_button = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setText(pht('Create a Paste'))
+ ->setHref('/paste/create/')
+ ->setColor(PHUIButtonView::GREEN);
+
+ $icon = $this->getApplication()->getFontIcon();
+ $app_name = $this->getApplication()->getName();
+ $view = id(new PHUIBigInfoView())
+ ->setIcon($icon)
+ ->setTitle(pht('Welcome to %s', $app_name))
+ ->setDescription(
+ pht('Store, share, and embed snippets of code.'))
+ ->addAction($create_button);
+
+ return $view;
+ }
}
diff --git a/src/applications/pholio/application/PhabricatorPholioApplication.php b/src/applications/pholio/application/PhabricatorPholioApplication.php
--- a/src/applications/pholio/application/PhabricatorPholioApplication.php
+++ b/src/applications/pholio/application/PhabricatorPholioApplication.php
@@ -44,6 +44,7 @@
'/pholio/' => array(
'(?:query/(?P<queryKey>[^/]+)/)?' => 'PholioMockListController',
'new/' => 'PholioMockEditController',
+ 'create/' => 'PholioMockEditController',
'edit/(?P<id>\d+)/' => 'PholioMockEditController',
'archive/(?P<id>\d+)/' => 'PholioMockArchiveController',
'comment/(?P<id>\d+)/' => 'PholioMockCommentController',
@@ -64,7 +65,7 @@
$item = id(new PHUIListItemView())
->setName(pht('Pholio Mock'))
->setIcon('fa-picture-o')
- ->setHref($this->getBaseURI().'new/');
+ ->setHref($this->getBaseURI().'create/');
$items[] = $item;
return $items;
diff --git a/src/applications/pholio/controller/PholioController.php b/src/applications/pholio/controller/PholioController.php
--- a/src/applications/pholio/controller/PholioController.php
+++ b/src/applications/pholio/controller/PholioController.php
@@ -13,7 +13,7 @@
$crumbs->addAction(
id(new PHUIListItemView())
->setName(pht('Create Mock'))
- ->setHref($this->getApplicationURI('new/'))
+ ->setHref($this->getApplicationURI('create/'))
->setIcon('fa-plus-square'));
return $crumbs;
diff --git a/src/applications/pholio/query/PholioMockSearchEngine.php b/src/applications/pholio/query/PholioMockSearchEngine.php
--- a/src/applications/pholio/query/PholioMockSearchEngine.php
+++ b/src/applications/pholio/query/PholioMockSearchEngine.php
@@ -130,4 +130,24 @@
return $result;
}
+ protected function getNewUserBody() {
+ $create_button = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setText(pht('Create a Mock'))
+ ->setHref('/pholio/create/')
+ ->setColor(PHUIButtonView::GREEN);
+
+ $icon = $this->getApplication()->getFontIcon();
+ $app_name = $this->getApplication()->getName();
+ $view = id(new PHUIBigInfoView())
+ ->setIcon($icon)
+ ->setTitle(pht('Welcome to %s', $app_name))
+ ->setDescription(
+ pht('Upload sets of images for review with revision history and '.
+ 'inline comments.'))
+ ->addAction($create_button);
+
+ return $view;
+ }
+
}
diff --git a/src/applications/phurl/query/PhabricatorPhurlURLSearchEngine.php b/src/applications/phurl/query/PhabricatorPhurlURLSearchEngine.php
--- a/src/applications/phurl/query/PhabricatorPhurlURLSearchEngine.php
+++ b/src/applications/phurl/query/PhabricatorPhurlURLSearchEngine.php
@@ -91,4 +91,23 @@
return $result;
}
+
+ protected function getNewUserBody() {
+ $create_button = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setText(pht('Shorten a URL'))
+ ->setHref('/phurl/url/create/')
+ ->setColor(PHUIButtonView::GREEN);
+
+ $icon = $this->getApplication()->getFontIcon();
+ $app_name = $this->getApplication()->getName();
+ $view = id(new PHUIBigInfoView())
+ ->setIcon($icon)
+ ->setTitle(pht('Welcome to %s', $app_name))
+ ->setDescription(
+ pht('Create reusable, memorable, shorter URLs for easy accessibility.'))
+ ->addAction($create_button);
+
+ return $view;
+ }
}
diff --git a/src/applications/ponder/query/PonderQuestionSearchEngine.php b/src/applications/ponder/query/PonderQuestionSearchEngine.php
--- a/src/applications/ponder/query/PonderQuestionSearchEngine.php
+++ b/src/applications/ponder/query/PonderQuestionSearchEngine.php
@@ -180,4 +180,23 @@
return $result;
}
+ protected function getNewUserBody() {
+ $create_button = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setText(pht('Ask a Question'))
+ ->setHref('/ponder/question/create/')
+ ->setColor(PHUIButtonView::GREEN);
+
+ $icon = $this->getApplication()->getFontIcon();
+ $app_name = $this->getApplication()->getName();
+ $view = id(new PHUIBigInfoView())
+ ->setIcon($icon)
+ ->setTitle(pht('Welcome to %s', $app_name))
+ ->setDescription(
+ pht('A simple questions and answers application for your teams.'))
+ ->addAction($create_button);
+
+ return $view;
+ }
+
}
diff --git a/src/applications/slowvote/query/PhabricatorSlowvoteSearchEngine.php b/src/applications/slowvote/query/PhabricatorSlowvoteSearchEngine.php
--- a/src/applications/slowvote/query/PhabricatorSlowvoteSearchEngine.php
+++ b/src/applications/slowvote/query/PhabricatorSlowvoteSearchEngine.php
@@ -163,4 +163,23 @@
return $result;
}
+ protected function getNewUserBody() {
+ $create_button = id(new PHUIButtonView())
+ ->setTag('a')
+ ->setText(pht('Create a Poll'))
+ ->setHref('/vote/create/')
+ ->setColor(PHUIButtonView::GREEN);
+
+ $icon = $this->getApplication()->getFontIcon();
+ $app_name = $this->getApplication()->getName();
+ $view = id(new PHUIBigInfoView())
+ ->setIcon($icon)
+ ->setTitle(pht('Welcome to %s', $app_name))
+ ->setDescription(
+ pht('Poll other users to help facilitate decision making.'))
+ ->addAction($create_button);
+
+ return $view;
+ }
+
}

File Metadata

Mime Type
text/plain
Expires
Sat, May 11, 11:47 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6281624
Default Alt Text
D14840.diff (9 KB)

Event Timeline