about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features/home_timeline/index.jsx
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-02-18 02:37:59 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-02-18 02:37:59 +0100
commit9e99b8c068b11ec2d0f3b5d560cae0166c247342 (patch)
tree35de1962d5a024642dda432c747da6be7215ce8d /app/assets/javascripts/components/features/home_timeline/index.jsx
parent1d5dfda3d45409f95b68d9e577f455309033da5f (diff)
Fix #642 - Add "empty column" text to home/notifications
Diffstat (limited to 'app/assets/javascripts/components/features/home_timeline/index.jsx')
-rw-r--r--app/assets/javascripts/components/features/home_timeline/index.jsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/components/features/home_timeline/index.jsx b/app/assets/javascripts/components/features/home_timeline/index.jsx
index 5d2263f15..23e198701 100644
--- a/app/assets/javascripts/components/features/home_timeline/index.jsx
+++ b/app/assets/javascripts/components/features/home_timeline/index.jsx
@@ -1,8 +1,9 @@
 import PureRenderMixin from 'react-addons-pure-render-mixin';
 import StatusListContainer from '../ui/containers/status_list_container';
 import Column from '../ui/components/column';
-import { defineMessages, injectIntl } from 'react-intl';
+import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
 import ColumnSettingsContainer from './containers/column_settings_container';
+import { Link } from 'react-router';
 
 const messages = defineMessages({
   title: { id: 'column.home', defaultMessage: 'Home' }
@@ -22,7 +23,7 @@ const HomeTimeline = React.createClass({
     return (
       <Column icon='home' heading={intl.formatMessage(messages.title)}>
         <ColumnSettingsContainer />
-        <StatusListContainer {...this.props} type='home' />
+        <StatusListContainer {...this.props} type='home' emptyMessage={<FormattedMessage id='empty_column.home' defaultMessage="You aren’t following anyone yet. Visit {public} or use search to get started and meet other users." values={{ public: <Link to='/timelines/public'><FormattedMessage id='empty_column.home.public_timeline' defaultMessage='the public timeline' /></Link> }} />} />
       </Column>
     );
   },