* Eliminate "&ms=1" url param. * Only track simple single-tag searches (not multi-tag searches, metatags, negated tags, etc).
16 lines
548 B
Plaintext
16 lines
548 B
Plaintext
<%# path, tags %>
|
|
|
|
<section id="search-box">
|
|
<h1>Search</h1>
|
|
<%= form_tag(path, method: "get", id: "search-box-form") do %>
|
|
<% if params[:raw] %>
|
|
<%= hidden_field_tag :raw, params[:raw] %>
|
|
<% end %>
|
|
<% if params[:random] %>
|
|
<%= hidden_field_tag :random, params[:random] %>
|
|
<% end %>
|
|
<%= text_field_tag("tags", tags, :id => tags_dom_id, :"data-shortcut" => "q", :"data-autocomplete" => "tag-query") %>
|
|
<button id="search-box-submit" type="submit"><i class="fas fa-search"></i></button>
|
|
<% end %>
|
|
</section>
|