DEV: Remove unused "search help"

This commit is contained in:
Gerhard Schlager 2020-02-12 22:14:08 +01:00
parent 8d50f092b5
commit a7efca1fa9
3 changed files with 0 additions and 26 deletions

View File

@ -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;
}
});

View File

@ -1,6 +0,0 @@
{{#d-modal-body id="search-help"}}
{{{model}}}
{{#if showGoogleSearch}}
{{{i18n 'google_search'}}}
{{/if}}
{{/d-modal-body}}

View File

@ -3085,16 +3085,6 @@ en:
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:
all_tags: "All Tags"
other_tags: "Other Tags"