remove old search help in favor of advanced search
This commit is contained in:
parent
f5ea95398b
commit
c51992cf5e
|
@ -206,11 +206,6 @@ export default Ember.Controller.extend({
|
||||||
this.get('selected').clear();
|
this.get('selected').clear();
|
||||||
},
|
},
|
||||||
|
|
||||||
showSearchHelp() {
|
|
||||||
// TODO: dupe code should be centralized
|
|
||||||
ajax("/static/search_help.html", { dataType: 'html' }).then(model => showModal('searchHelp', { model }));
|
|
||||||
},
|
|
||||||
|
|
||||||
search() {
|
search() {
|
||||||
this._search();
|
this._search();
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,12 +28,6 @@ const ApplicationRoute = Discourse.Route.extend(OpenComposer, {
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
|
|
||||||
showSearchHelp() {
|
|
||||||
ajax("/static/search_help.html", { dataType: 'html' }).then(model => {
|
|
||||||
showModal('searchHelp', { model });
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
toggleAnonymous() {
|
toggleAnonymous() {
|
||||||
ajax("/users/toggle-anon", {method: 'POST'}).then(() => {
|
ajax("/users/toggle-anon", {method: 'POST'}).then(() => {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
|
|
@ -42,9 +42,6 @@
|
||||||
{{#if searchActive}}
|
{{#if searchActive}}
|
||||||
{{i18n "search.no_results"}}
|
{{i18n "search.no_results"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#unless isExpanded}}
|
|
||||||
<a href class="show-help" {{action "showSearchHelp" bubbles=false}}>{{i18n "search.search_help"}}</a>
|
|
||||||
{{/unless}}
|
|
||||||
</h3>
|
</h3>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
|
@ -120,9 +117,6 @@
|
||||||
{{#if hasResults}}
|
{{#if hasResults}}
|
||||||
<h3 class="search-footer">
|
<h3 class="search-footer">
|
||||||
{{i18n "search.no_more_results"}}
|
{{i18n "search.no_more_results"}}
|
||||||
{{#unless isExpanded}}
|
|
||||||
<a href class="show-help" {{action "showSearchHelp" bubbles=false}}>{{i18n "search.search_help"}}</a>
|
|
||||||
{{/unless}}
|
|
||||||
</h3>
|
</h3>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
||||||
});
|
|
|
@ -1210,7 +1210,6 @@ en:
|
||||||
title: "search topics, posts, users, or categories"
|
title: "search topics, posts, users, or categories"
|
||||||
no_results: "No results found."
|
no_results: "No results found."
|
||||||
no_more_results: "No more results found."
|
no_more_results: "No more results found."
|
||||||
search_help: Search help
|
|
||||||
searching: "Searching ..."
|
searching: "Searching ..."
|
||||||
post_format: "#{{post_number}} by {{username}}"
|
post_format: "#{{post_number}} by {{username}}"
|
||||||
|
|
||||||
|
@ -2111,9 +2110,6 @@ en:
|
||||||
lightbox:
|
lightbox:
|
||||||
download: "download"
|
download: "download"
|
||||||
|
|
||||||
search_help:
|
|
||||||
title: 'Search Help'
|
|
||||||
|
|
||||||
keyboard_shortcuts_help:
|
keyboard_shortcuts_help:
|
||||||
title: 'Keyboard Shortcuts'
|
title: 'Keyboard Shortcuts'
|
||||||
jump_to:
|
jump_to:
|
||||||
|
|
|
@ -2950,36 +2950,6 @@ en:
|
||||||
|
|
||||||
This document is CC-BY-SA. It was last updated May 31, 2013.
|
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 – 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:
|
badges:
|
||||||
editor:
|
editor:
|
||||||
name: Editor
|
name: Editor
|
||||||
|
|
Loading…
Reference in New Issue