DEV: Remove unused "search help"
This commit is contained in:
parent
8d50f092b5
commit
a7efca1fa9
app/assets/javascripts/discourse
config/locales
|
@ -1,10 +0,0 @@
|
||||||
import discourseComputed from "discourse-common/utils/decorators";
|
|
||||||
import Controller from "@ember/controller";
|
|
||||||
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
|
||||||
|
|
||||||
export default Controller.extend(ModalFunctionality, {
|
|
||||||
@discourseComputed
|
|
||||||
showGoogleSearch() {
|
|
||||||
return !Discourse.SiteSettings.login_required;
|
|
||||||
}
|
|
||||||
});
|
|
|
@ -1,6 +0,0 @@
|
||||||
{{#d-modal-body id="search-help"}}
|
|
||||||
{{{model}}}
|
|
||||||
{{#if showGoogleSearch}}
|
|
||||||
{{{i18n 'google_search'}}}
|
|
||||||
{{/if}}
|
|
||||||
{{/d-modal-body}}
|
|
|
@ -3085,16 +3085,6 @@ en:
|
||||||
posting:
|
posting:
|
||||||
name: Posting
|
name: Posting
|
||||||
|
|
||||||
google_search: |
|
|
||||||
<h3>Search with Google</h3>
|
|
||||||
<p>
|
|
||||||
<form action='//google.com/search' id='google-search' onsubmit="document.getElementById('google-query').value = 'site:' + window.location.host + ' ' + document.getElementById('user-query').value; return true;">
|
|
||||||
<input type="text" id='user-query' value="">
|
|
||||||
<input type='hidden' id='google-query' name="q">
|
|
||||||
<button class="btn btn-primary">Google</button>
|
|
||||||
</form>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
tagging:
|
tagging:
|
||||||
all_tags: "All Tags"
|
all_tags: "All Tags"
|
||||||
other_tags: "Other Tags"
|
other_tags: "Other Tags"
|
||||||
|
|
Loading…
Reference in New Issue