Don't show the search field when it's not needed #979
Contributed by Harald Klimach
This commit is contained in:
parent
f0f0171a59
commit
037bb192ac
|
@ -35,9 +35,11 @@
|
|||
<div id="header">
|
||||
<div id="logo"><%= link_to(h(Setting.app_title), home_path) %></div>
|
||||
<div id="top-menu-items">
|
||||
<% if User.current.logged? || !Setting.login_required? %>
|
||||
<div id="search">
|
||||
<%= render :partial => 'search/quick_search', :locals => {:search_term => @question} %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<ul id="account-nav">
|
||||
<% if User.current.logged? || !Setting.login_required? %>
|
||||
|
|
Loading…
Reference in New Issue