From 512b5d97aa4d74e8f52e48b9afe0b8c07b13fc12 Mon Sep 17 00:00:00 2001 From: edshot99 Date: Fri, 31 Jan 2025 00:19:59 -0600 Subject: [PATCH] adjust search box to give a hint on searching for videos --- app/views/posts/partials/common/_search.html.erb | 2 +- app/views/static/home.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/posts/partials/common/_search.html.erb b/app/views/posts/partials/common/_search.html.erb index 051a9a259..ba073ca3b 100644 --- a/app/views/posts/partials/common/_search.html.erb +++ b/app/views/posts/partials/common/_search.html.erb @@ -9,7 +9,7 @@ <%= hidden_field_tag :random, params[:random] %> <% 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") %> <% end %> diff --git a/app/views/static/home.html.erb b/app/views/static/home.html.erb index 26952516c..ebe4ea248 100644 --- a/app/views/static/home.html.erb +++ b/app/views/static/home.html.erb @@ -8,7 +8,7 @@
<%= 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") %> <% end %>