Project

General

Profile

Defect #3715 » 3715-1.diff

Lucas Panjer, 2009-09-04 08:37

View differences:

app/views/layouts/base.rhtml (working copy)
25 25
        <%= render_menu :account_menu -%>
26 26
    </div>
27 27
    <%= content_tag('div', "#{l(:label_logged_as)} #{link_to_user(User.current, :format => :username)}", :id => 'loggedas') if User.current.logged? %>
28
    <%= render_menu :top_menu -%>
28
    <%= render_menu :top_menu if User.current.logged? || !Setting.login_required? -%>
29 29
</div>
30 30
      
31 31
<div id="header">
32 32
    <div id="quick-search">
33
        <% if User.current.logged? || !Setting.login_required? %>
33 34
        <% form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
34 35
        <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
35 36
        <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
36 37
        <% end %>
37 38
        <%= render_project_jump_box %>
39
        <% end %>
38 40
    </div>
39 41
    
40 42
    <h1><%= page_header_title %></h1>
(1-1/2)