From 0db66d3a184aacc04f652b2e7649751be8063428 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Fri, 5 Sep 2014 11:15:10 +0530 Subject: [PATCH] Add education panel for starred tab --- .../javascripts/discourse/controllers/discovery/topics.js.es6 | 2 +- config/locales/client.en.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/discovery/topics.js.es6 b/app/assets/javascripts/discourse/controllers/discovery/topics.js.es6 index f992ec9b92b..ade393b758c 100644 --- a/app/assets/javascripts/discourse/controllers/discovery/topics.js.es6 +++ b/app/assets/javascripts/discourse/controllers/discovery/topics.js.es6 @@ -153,7 +153,7 @@ var controllerOpts = { var split = this.get('filter').split('/'); - if (split[0] !== 'new' && split[0] !== 'unread') { return; } + if (split[0] !== 'new' && split[0] !== 'unread' && split[0] !== 'starred') { return; } return I18n.t("topics.none.educate." + split[0], { userPrefsUrl: Discourse.getURL("/users/") + (Discourse.User.currentProp("username_lower")) + "/preferences" diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 7fd5fb56546..e9e392f548b 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -781,6 +781,7 @@ en: educate: new: '

By default, topics are considered new when they were created in the last 2 days.

You can change this in your preferences.

' unread: '

By default, unread indicators will only appear for topics that you have:

Or, if you have explicitly set the topic to Tracked or Watched via the notification control at the bottom of each topic.

You can change this in your preferences.

' + starred: '

Topics that you have starred will appear here.

' bottom: latest: "There are no more latest topics." hot: "There are no more hot topics."