Skip to content
This repository has been archived by the owner on Jan 8, 2018. It is now read-only.

Commit

Permalink
Don't show the search field when it's not needed #979
Browse files Browse the repository at this point in the history
Contributed by Harald Klimach
  • Loading branch information
thegcat committed Jul 9, 2012
1 parent 12b2d3c commit 3738564
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/layouts/base.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -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? %>
Expand Down

0 comments on commit 3738564

Please sign in to comment.