mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Replace Google search with Discourse search on not found page
* UX: Replace Google search with Discourse search on not found page. * FIX: Update application_controller_spec.rb.
This commit is contained in:
@@ -25,15 +25,14 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%- unless @hide_google %>
|
||||
<%- unless @hide_search%>
|
||||
<div class="row">
|
||||
<div class="page-not-found-search">
|
||||
<h2><%= t 'page_not_found.search_title' %></h2>
|
||||
<p>
|
||||
<form action='//google.com/search' id='google-search'>
|
||||
<form action='/search' id='discourse-search'>
|
||||
<input type="text" name="q" value="<%= @slug %>">
|
||||
<input type='hidden' name="as_sitesearch" value="<%= Discourse.base_url %>">
|
||||
<button class="btn btn-primary"><%= t 'page_not_found.search_google' %></button>
|
||||
<button class="btn btn-primary"><%= t 'page_not_found.search_button' %></button>
|
||||
</form>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user