aboutsummaryrefslogtreecommitdiff
path: root/web/views
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2015-08-09 14:42:19 +0100
committerChristopher Baines <mail@cbaines.net>2015-08-09 14:42:19 +0100
commit578c048318446f4c8366e2840c7df79186140d2c (patch)
treeb1e84424b6f831d2a9aa34d6ed53e02e60139bb7 /web/views
parent273d37d84e8d85434760af904d2daeeb919fb966 (diff)
downloadtaginfo-578c048318446f4c8366e2840c7df79186140d2c.tar
taginfo-578c048318446f4c8366e2840c7df79186140d2c.tar.gz
Add placeholder for search form
Diffstat (limited to 'web/views')
-rw-r--r--web/views/layout.erb9
1 files changed, 8 insertions, 1 deletions
diff --git a/web/views/layout.erb b/web/views/layout.erb
index 4c8da82..2665ac9 100644
--- a/web/views/layout.erb
+++ b/web/views/layout.erb
@@ -51,7 +51,14 @@
<li><a href="/about"><%= h(t.taginfo.about) %></a></li>
<% unless @nosearch %>
<li>
- <form id="search_form" action="/search"><input type="text" id="search" name="q" value="<%= h(params[:q]) %>"/></form>
+ <form id="search_form" action="/search">
+ <input type="text"
+ id="search"
+ name="q"
+ value="<%= h(params[:q]) %>"
+ placeholder="Search"
+ />
+ </form>
</li>
<% end %>
</ul>