Page MenuHomePhabricator

D11897.diff
No OneTemporary

D11897.diff

diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -94,7 +94,7 @@
'rsrc/css/application/ponder/feed.css' => 'e62615b6',
'rsrc/css/application/ponder/post.css' => 'ebab8a70',
'rsrc/css/application/ponder/vote.css' => '8ed6ed8b',
- 'rsrc/css/application/profile/profile-view.css' => 'b4896815',
+ 'rsrc/css/application/profile/profile-view.css' => 'd8cb982b',
'rsrc/css/application/projects/project-icon.css' => 'c2ecb7f1',
'rsrc/css/application/releeph/releeph-core.css' => '9b3c5733',
'rsrc/css/application/releeph/releeph-preview-branch.css' => 'b7a6f4a5',
@@ -737,7 +737,7 @@
'phabricator-object-selector-css' => '029a133d',
'phabricator-phtize' => 'd254d646',
'phabricator-prefab' => '72da38cc',
- 'phabricator-profile-css' => 'b4896815',
+ 'phabricator-profile-css' => 'd8cb982b',
'phabricator-remarkup-css' => 'e8e5a324',
'phabricator-search-results-css' => 'f240504c',
'phabricator-shaped-request' => '7cbe244b',
diff --git a/src/applications/feed/builder/PhabricatorFeedBuilder.php b/src/applications/feed/builder/PhabricatorFeedBuilder.php
--- a/src/applications/feed/builder/PhabricatorFeedBuilder.php
+++ b/src/applications/feed/builder/PhabricatorFeedBuilder.php
@@ -5,6 +5,7 @@
private $stories;
private $framed;
private $hovercards = false;
+ private $noDataString;
public function __construct(array $stories) {
assert_instances_of($stories, 'PhabricatorFeedStory');
@@ -26,6 +27,11 @@
return $this;
}
+ public function setNoDataString($string) {
+ $this->noDataString = $string;
+ return $this;
+ }
+
public function buildView() {
if (!$this->user) {
throw new Exception('Call setUser() before buildView()!');
@@ -76,6 +82,20 @@
$null_view->appendChild($view);
}
+ if (empty($stories)) {
+ $nodatastring = pht('No Stories.');
+ if ($this->noDataString) {
+ $nodatastring = $this->noDataString;
+ }
+
+ $view = id(new PHUIErrorView())
+ ->setSeverity(PHUIErrorView::SEVERITY_NODATA)
+ ->appendChild($nodatastring);
+ $null_view->appendChild($view);
+ }
+
+
+
return id(new AphrontNullView())
->appendChild($null_view->render());
}
diff --git a/src/applications/people/controller/PhabricatorPeopleFeedController.php b/src/applications/people/controller/PhabricatorPeopleFeedController.php
--- a/src/applications/people/controller/PhabricatorPeopleFeedController.php
+++ b/src/applications/people/controller/PhabricatorPeopleFeedController.php
@@ -38,6 +38,8 @@
$builder = new PhabricatorFeedBuilder($stories);
$builder->setUser($viewer);
$builder->setShowHovercards(true);
+ $builder->setNoDataString(pht('To begin on such a grand journey, '.
+ 'requires but just a single step.'));
$view = $builder->buildView();
$feed = phutil_tag_div(
diff --git a/webroot/rsrc/css/application/profile/profile-view.css b/webroot/rsrc/css/application/profile/profile-view.css
--- a/webroot/rsrc/css/application/profile/profile-view.css
+++ b/webroot/rsrc/css/application/profile/profile-view.css
@@ -48,6 +48,10 @@
max-width: 640px;
}
+.phabricator-project-feed .phui-error-view {
+ margin: 12px 0;
+}
+
.device-phone .phabricator-project-feed {
padding: 0 12px;
width: auto;

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 13, 6:02 AM (2 h, 48 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7386750
Default Alt Text
D11897.diff (3 KB)

Event Timeline