forked from e621ng/e621ng
adjust search box to give a hint on searching for videos
This commit is contained in:
parent
94af5fe262
commit
512b5d97aa
@ -9,7 +9,7 @@
|
|||||||
<%= hidden_field_tag :random, params[:random] %>
|
<%= hidden_field_tag :random, params[:random] %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= text_area_tag("tags", tags, placeholder: "Search posts by tag", rows: 1, data: { shortcut: "q", autocomplete: "tag-query" }) %>
|
<%= text_area_tag("tags", tags, placeholder: "Search posts by tag (title:\"video name\")", rows: 1, data: { shortcut: "q", autocomplete: "tag-query" }) %>
|
||||||
<%= tag.button(tag.i(class: "fa-solid fa-magnifying-glass"), type: "submit", title: "Search") %>
|
<%= tag.button(tag.i(class: "fa-solid fa-magnifying-glass"), type: "submit", title: "Search") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</section>
|
</section>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<%= form_tag(posts_path, method: "get", class: "home-search") do %>
|
<%= form_tag(posts_path, method: "get", class: "home-search") do %>
|
||||||
<%= text_field_tag("tags", "", autofocus: "autofocus", placeholder: "Search posts by tag (or with title:\"video name\")", data: { shortcut: "q", autocomplete: "tag-query" }) %>
|
<%= text_field_tag("tags", "", autofocus: "autofocus", placeholder: "Search posts by tag (title:\"video name\")", data: { shortcut: "q", autocomplete: "tag-query" }) %>
|
||||||
<%= tag.button(tag.i(class: "fa-solid fa-magnifying-glass"), type: "submit") %>
|
<%= tag.button(tag.i(class: "fa-solid fa-magnifying-glass"), type: "submit") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user