diff --git a/app/views/layouts/base.rhtml b/app/views/layouts/base.rhtml index 5841d3e4..15318605 100644 --- a/app/views/layouts/base.rhtml +++ b/app/views/layouts/base.rhtml @@ -40,7 +40,7 @@ <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %> <%= text_field_tag 'q', @question, :size => 20, :class => 'search_field', :placeholder => l(:search_input_placeholder), :accesskey => accesskey(:quick_search) %> <% end %> - + <% if User.current.logged? || !Setting.login_required? %>
  • - - <% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get, :id => 'nav-search' ) do %> - <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %> - <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %> - <% end %> - <%= render_menu_node(help_menu_item) %> + <%= render_menu_node(help_menu_item) %> <% unless User.current.logged? %>
  • <%= link_to l(:label_login), {:controller => 'account', :action => 'login'}, :class => 'login' %>