Add a title tag to the search results page

This commit is contained in:
Robin Ward 2017-04-26 15:02:07 -04:00
parent bf9c4a7828
commit cd4f0393a8
3 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,10 @@ import { getOwner } from 'discourse-common/lib/get-owner';
export default Discourse.Route.extend({
queryParams: { q: {}, expanded: false, context_id: {}, context: {}, skip_context: {} },
titleToken() {
return I18n.t('search.results_page');
},
model(params) {
const cached = getTransient('lastSearch');
var args = { q: params.q };

View File

@ -0,0 +1 @@
<% content_for :title do %><%= t 'js.search.results_page' %><% end %>

View File

@ -1294,6 +1294,7 @@ en:
no_more_results: "No more results found."
searching: "Searching ..."
post_format: "#{{post_number}} by {{username}}"
results_page: "Search Results"
context:
user: "Search posts by @{{username}}"