remove old search help in favor of advanced search

This commit is contained in:
Jeff Atwood 2016-10-11 14:01:16 -07:00
parent f5ea95398b
commit c51992cf5e
6 changed files with 0 additions and 58 deletions

View File

@ -206,11 +206,6 @@ export default Ember.Controller.extend({
this.get('selected').clear();
},
showSearchHelp() {
// TODO: dupe code should be centralized
ajax("/static/search_help.html", { dataType: 'html' }).then(model => showModal('searchHelp', { model }));
},
search() {
this._search();
}

View File

@ -28,12 +28,6 @@ const ApplicationRoute = Discourse.Route.extend(OpenComposer, {
actions: {
showSearchHelp() {
ajax("/static/search_help.html", { dataType: 'html' }).then(model => {
showModal('searchHelp', { model });
});
},
toggleAnonymous() {
ajax("/users/toggle-anon", {method: 'POST'}).then(() => {
window.location.reload();

View File

@ -42,9 +42,6 @@
{{#if searchActive}}
{{i18n "search.no_results"}}
{{/if}}
{{#unless isExpanded}}
<a href class="show-help" {{action "showSearchHelp" bubbles=false}}>{{i18n "search.search_help"}}</a>
{{/unless}}
</h3>
{{/unless}}
@ -120,9 +117,6 @@
{{#if hasResults}}
<h3 class="search-footer">
{{i18n "search.no_more_results"}}
{{#unless isExpanded}}
<a href class="show-help" {{action "showSearchHelp" bubbles=false}}>{{i18n "search.search_help"}}</a>
{{/unless}}
</h3>
{{/if}}

View File

@ -1,7 +0,0 @@
import ModalBodyView from "discourse/views/modal-body";
export default ModalBodyView.extend({
templateName: 'modal/search_help',
title: I18n.t('search_help.title'),
focusInput: false
});

View File

@ -1210,7 +1210,6 @@ en:
title: "search topics, posts, users, or categories"
no_results: "No results found."
no_more_results: "No more results found."
search_help: Search help
searching: "Searching ..."
post_format: "#{{post_number}} by {{username}}"
@ -2111,9 +2110,6 @@ en:
lightbox:
download: "download"
search_help:
title: 'Search Help'
keyboard_shortcuts_help:
title: 'Keyboard Shortcuts'
jump_to:

View File

@ -2950,36 +2950,6 @@ en:
This document is CC-BY-SA. It was last updated May 31, 2013.
static:
search_help: |
<h3>Tips</h3>
<p>
<ul>
<li>Title matches are prioritized &ndash; when in doubt, search for titles</li>
<li>Unique, uncommon words will produce the best results</li>
<li>Try searching within a particular category, topic, or user</li>
</ul>
</p>
<h3>Options</h3>
<p>
<table>
<tr><td><code>order:views</code></td><td><code>order:latest</code></td><td><code>order:likes</code></td><td><code>@username</code></td><td><code>user:foo</code></td></tr>
<tr><td><code>status:open</code></td><td><code>status:closed</code></td><td><code>status:archived</code></td><td><code>status:noreplies</code></td><td><code>status:single_user</code></td></tr>
<tr><td><code>#category-slug</code></td><td><code>category:foo</code></td><td><code>group:foo</code></td><td><code>badge:foo</code></td><td></td></tr>
<tr><td><code>in:likes</code></td><td><code>in:posted</code></td><td><code>in:watching</code></td><td><code>in:tracking</code></td><td><code>in:private</code></td></tr>
<tr><td><code>in:bookmarks</code></td><td><code>in:first</code></td><td><code>in:pinned</code></td><td><code>in:unpinned</code></td><td><code>in:wiki</code></td></tr>
<tr><td><code>posts_count:num</code></td><td><code>before:days or date</code></td><td><code>after:days or date</code></td><td><code>tags:one,two</code></td><td></td></tr>
</table>
</p>
<h3>Examples</h3>
<p>
<ul>
<li><code>rainbows #parks</code> will search for topics containing the word "rainbows" in the category "parks".</li>
<li><code>rainbows category:parks status:open order:latest</code> will search for topics containing the word "rainbows" in the category "parks" that are not closed or archived, ordered by date of last post.</li>
<li><code>rainbows category:"parks and gardens" in:bookmarks</code> will search for topics containing the word "rainbows" in the category "parks and gardens" that are bookmarked by you.</li>
</ul>
</p>
badges:
editor:
name: Editor