aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2015-05-12 17:29:56 +0200
committerJochen Topf <jochen@topf.org>2015-05-12 17:29:56 +0200
commit3f793d78c21941cff110bf96dc286506a8a7c09f (patch)
tree5dd7e91e3d5a9cdde79b54adf33139b519fcfc8b
parent47cb7bf89567ecf603e23068fc5ac07aa801d487 (diff)
downloadtaginfo-3f793d78c21941cff110bf96dc286506a8a7c09f.tar
taginfo-3f793d78c21941cff110bf96dc286506a8a7c09f.tar.gz
Make layout more flexible.
-rw-r--r--web/views/layout.erb7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/views/layout.erb b/web/views/layout.erb
index 6c3b98a..3320c15 100644
--- a/web/views/layout.erb
+++ b/web/views/layout.erb
@@ -8,6 +8,11 @@
<link rel="stylesheet" type="text/css" href="/css/smoothness/jquery-ui-1.8.10.custom-minified.css" />
<link rel="stylesheet" type="text/css" href="/css/flexigrid/flexigrid-minified.css" />
<link rel="search" type="application/opensearchdescription+xml" href="/search/opensearch.xml" title="<%= TaginfoConfig.get('opensearch.shortname') %>" />
+<% if @css %>
+ <style type="text/css"><!--
+<%= @css %>
+--></style>
+<% end %>
<%= javascript_tags %>
</head>
<body>
@@ -22,7 +27,9 @@
<% end %>
</select>
</form>
+<% unless @nosearch %>
<form id="search_form" action="/search"><input type="text" id="search" name="q" value="<%= h(params[:q]) %>"/></form>
+<% end %>
</div>
<div id="header_logo">
<a href="/"><img width="49" height="49" src="<%= TaginfoConfig.get('instance.icon', '/img/logo/world.png') %>" alt="taginfo"/></a>