summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2012-01-25 15:32:32 +0100
committerJochen Topf <jochen@topf.org>2012-01-25 15:32:32 +0100
commitb4cc49a9ee69abd30cffcbe6218a34807adcad32 (patch)
treedd96ccbdb4b49bdb95fe4bf59b2264b2a3044b19 /web
parent5d86569a0f9626c6357770c684f5497f94d1c969 (diff)
downloadtaginfo-b4cc49a9ee69abd30cffcbe6218a34807adcad32.tar
taginfo-b4cc49a9ee69abd30cffcbe6218a34807adcad32.tar.gz
Add last query to search field if available
Diffstat (limited to 'web')
-rw-r--r--web/views/layout.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/views/layout.erb b/web/views/layout.erb
index be7645f..5e5c053 100644
--- a/web/views/layout.erb
+++ b/web/views/layout.erb
@@ -22,7 +22,7 @@
<% end %>
</select>
</form>
- <form action="/search"><input type="text" id="search" name="q" value=""/></form>
+ <form action="/search"><input type="text" id="search" name="q" value="<%= h(params[:q]) %>"/></form>
</div>
<div id="header_logo">
<a href="/"><img width="49" height="49" src="<%= TaginfoConfig.get('instance.icon', '/img/logo/world.png') %>" alt="taginfo"/></a>