Factor out FontAwesome icons into a set of helpers. This is so that it's easier to keep track of which icons we're using and easier to change icons globally.
13 lines
448 B
Plaintext
13 lines
448 B
Plaintext
<%# path, tags %>
|
|
|
|
<section id="search-box">
|
|
<h2>Search</h2>
|
|
<%= form_tag(path, method: "get", id: "search-box-form") do %>
|
|
<% 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"><%= search_icon %></button>
|
|
<% end %>
|
|
</section>
|