Project

General

Profile

Defect #15872 ยป redmine_patch_leading_fwd_slash.diff

patch for defect 15872 - Gord Brown, 2015-09-25 18:57

View differences:

app/views/layouts/base.html.erb (working copy)
30 30
<div id="header">
31 31
    <% if User.current.logged? || !Setting.login_required? %>
32 32
    <div id="quick-search">
33
        <%= form_tag({:controller => 'search', :action => 'index', :id => @project}, :method => :get ) do %>
33
        <%= form_tag({:controller => '/search', :action => 'index', :id => @project}, :method => :get ) do %>
34 34
        <%= hidden_field_tag(controller.default_search_scope, 1, :id => nil) if controller.default_search_scope %>
35 35
        <label for='q'>
36
          <%= link_to l(:label_search), {:controller => 'search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
36
          <%= link_to l(:label_search), {:controller => '/search', :action => 'index', :id => @project}, :accesskey => accesskey(:search) %>:
37 37
        </label>
38 38
        <%= text_field_tag 'q', @question, :size => 20, :class => 'small', :accesskey => accesskey(:quick_search) %>
39 39
        <% end %>
lib/redmine.rb (working copy)
185 185

  
186 186
Redmine::MenuManager.map :top_menu do |menu|
187 187
  menu.push :home, :home_path
188
  menu.push :my_page, { :controller => 'my', :action => 'page' }, :if => Proc.new { User.current.logged? }
189
  menu.push :projects, { :controller => 'projects', :action => 'index' }, :caption => :label_project_plural
190
  menu.push :administration, { :controller => 'admin', :action => 'index' }, :if => Proc.new { User.current.admin? }, :last => true
188
  menu.push :my_page, { :controller => '/my', :action => 'page' }, :if => Proc.new { User.current.logged? }
189
  menu.push :projects, { :controller => '/projects', :action => 'index' }, :caption => :label_project_plural
190
  menu.push :administration, { :controller => '/admin', :action => 'index' }, :if => Proc.new { User.current.admin? }, :last => true
191 191
  menu.push :help, Redmine::Info.help_url, :last => true
192 192
end
193 193

  
194 194
Redmine::MenuManager.map :account_menu do |menu|
195 195
  menu.push :login, :signin_path, :if => Proc.new { !User.current.logged? }
196 196
  menu.push :register, :register_path, :if => Proc.new { !User.current.logged? && Setting.self_registration? }
197
  menu.push :my_account, { :controller => 'my', :action => 'account' }, :if => Proc.new { User.current.logged? }
197
  menu.push :my_account, { :controller => '/my', :action => 'account' }, :if => Proc.new { User.current.logged? }
198 198
  menu.push :logout, :signout_path, :html => {:method => 'post'}, :if => Proc.new { User.current.logged? }
199 199
end
200 200

  
    (1-1/1)