diff options
author | Christopher Baines <mail@cbaines.net> | 2015-08-09 14:42:19 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2015-08-09 14:42:19 +0100 |
commit | 578c048318446f4c8366e2840c7df79186140d2c (patch) | |
tree | b1e84424b6f831d2a9aa34d6ed53e02e60139bb7 | |
parent | 273d37d84e8d85434760af904d2daeeb919fb966 (diff) | |
download | taginfo-578c048318446f4c8366e2840c7df79186140d2c.tar taginfo-578c048318446f4c8366e2840c7df79186140d2c.tar.gz |
Add placeholder for search form
-rw-r--r-- | web/views/layout.erb | 9 |
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> |