Don't show the search field when it's not needed #979
Contributed by Harald Klimach
This commit is contained in:
parent
12b2d3c182
commit
37385642fa
|
@ -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