diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-11-19 08:08:28 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-11-19 08:08:28 -0500 |
commit | 5f848b74793f679772473a3b5b2ab247bcc927a9 (patch) | |
tree | 1d53e4c9dd6351e7a56c0f67dcf3bac4c38a8369 /web/react/components/search_results.jsx | |
parent | 0dbbdaa45e639d508a4e75933a42ac4c313202d2 (diff) | |
parent | 70c957d4546016ff2d981d4e1704699b008d1ca5 (diff) | |
download | chat-5f848b74793f679772473a3b5b2ab247bcc927a9.tar.gz chat-5f848b74793f679772473a3b5b2ab247bcc927a9.tar.bz2 chat-5f848b74793f679772473a3b5b2ab247bcc927a9.zip |
Merge pull request #1457 from hmhealey/plt729
PLT-729 Added search button to mobile header
Diffstat (limited to 'web/react/components/search_results.jsx')
-rw-r--r-- | web/react/components/search_results.jsx | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/web/react/components/search_results.jsx b/web/react/components/search_results.jsx index f4d8647db..491995087 100644 --- a/web/react/components/search_results.jsx +++ b/web/react/components/search_results.jsx @@ -80,14 +80,27 @@ export default class SearchResults extends React.Component { var ctls = null; - if (noResults) { + if (!searchTerm && noResults) { + ctls = ( + <div className='sidebar--right__subheader'> + <ul> + <li> + {'Use '}<b>{'"quotation marks"'}</b>{' to search for phrases'} + </li> + <li> + {'Use '}<b>{'from:'}</b>{' to find posts from specific users and '}<b>{'in:'}</b>{' to find posts in specific channels'} + </li> + </ul> + </div> + ); + } else if (noResults) { ctls = ( <div className='sidebar--right__subheader'> <h4>{'NO RESULTS'}</h4> <ul> - <li>If you're searching a partial phrase (ex. searching "rea", looking for "reach" or "reaction"), append a * to your search term</li> - <li>Due to the volume of results, two letter searches and common words like "this", "a" and "is" won't appear in search results</li> + <li>{'If you\'re searching a partial phrase (ex. searching "rea", looking for "reach" or "reaction"), append a * to your search term'}</li> + <li>{'Due to the volume of results, two letter searches and common words like "this", "a" and "is" won\'t appear in search results'}</li> </ul> </div> ); |