fixed #9005: administration-menu doesn't work with prefix-url
git-svn-id: http://redmine.rubyforge.org/svn/trunk@289 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a6248cba19
commit
074a4a6e0e
|
@ -61,23 +61,23 @@
|
||||||
|
|
||||||
<% if admin_loggedin? %>
|
<% if admin_loggedin? %>
|
||||||
<div id="menuAdmin" class="menu" onmouseover="menuMouseover(event)">
|
<div id="menuAdmin" class="menu" onmouseover="menuMouseover(event)">
|
||||||
<a class="menuItem" href="/admin/projects" onmouseover="menuItemMouseover(event,'menuProjects');"><span class="menuItemText"><%=l(:label_project_plural)%></span><span class="menuItemArrow">▶</span></a>
|
<a class="menuItem" href="<%= url_for :controller => 'admin', :action => 'projects' %>" onmouseover="menuItemMouseover(event,'menuProjects');"><span class="menuItemText"><%=l(:label_project_plural)%></span><span class="menuItemArrow">▶</span></a>
|
||||||
<a class="menuItem" href="/users" onmouseover="menuItemMouseover(event,'menuUsers');"><span class="menuItemText"><%=l(:label_user_plural)%></span><span class="menuItemArrow">▶</span></a>
|
<a class="menuItem" href="<%= url_for :controller => 'users' %>" onmouseover="menuItemMouseover(event,'menuUsers');"><span class="menuItemText"><%=l(:label_user_plural)%></span><span class="menuItemArrow">▶</span></a>
|
||||||
<a class="menuItem" href="/roles"><%=l(:label_role_and_permissions)%></a>
|
<%= link_to l(:label_role_and_permissions), {:controller => 'roles' }, :class => "menuItem" %>
|
||||||
<a class="menuItem" href="/trackers" onmouseover="menuItemMouseover(event,'menuTrackers');"><span class="menuItemText"><%=l(:label_tracker_plural)%></span><span class="menuItemArrow">▶</span></a>
|
<a class="menuItem" href="<%= url_for :controller => 'trackers' %>" onmouseover="menuItemMouseover(event,'menuTrackers');"><span class="menuItemText"><%=l(:label_tracker_plural)%></span><span class="menuItemArrow">▶</span></a>
|
||||||
<a class="menuItem" href="/custom_fields"><%=l(:label_custom_field_plural)%></a>
|
<%= link_to l(:label_custom_field_plural), {:controller => 'custom_fields' }, :class => "menuItem" %>
|
||||||
<a class="menuItem" href="/enumerations"><%=l(:label_enumerations)%></a>
|
<%= link_to l(:label_enumerations), {:controller => 'enumerations' }, :class => "menuItem" %>
|
||||||
<a class="menuItem" href="/admin/mail_options"><%=l(:field_mail_notification)%></a>
|
<%= link_to l(:field_mail_notification), {:controller => 'admin', :action => 'mail_options' }, :class => "menuItem" %>
|
||||||
<a class="menuItem" href="/auth_sources"><%=l(:label_authentication)%></a>
|
<%= link_to l(:label_authentication), {:controller => 'auth_sources' }, :class => "menuItem" %>
|
||||||
<a class="menuItem" href="/settings"><%=l(:label_settings)%></a>
|
<%= link_to l(:label_settings), {:controller => 'settings' }, :class => "menuItem" %>
|
||||||
<a class="menuItem" href="/admin/info"><%=l(:label_information_plural)%></a>
|
<%= link_to l(:label_information_plural), {:controller => 'admin', :action => 'info' }, :class => "menuItem" %>
|
||||||
</div>
|
</div>
|
||||||
<div id="menuTrackers" class="menu">
|
<div id="menuTrackers" class="menu">
|
||||||
<a class="menuItem" href="/issue_statuses"><%=l(:label_issue_status_plural)%></a>
|
<%= link_to l(:label_issue_status_plural), {:controller => 'issue_statuses' }, :class => "menuItem" %>
|
||||||
<a class="menuItem" href="/roles/workflow"><%=l(:label_workflow)%></a>
|
<%= link_to l(:label_workflow), {:controller => 'roles', :action => 'workflow' }, :class => "menuItem" %>
|
||||||
</div>
|
</div>
|
||||||
<div id="menuProjects" class="menu"><a class="menuItem" href="/projects/add"><%=l(:label_new)%></a></div>
|
<div id="menuProjects" class="menu"><%= link_to l(:label_new), {:controller => 'projects', :action => 'add' }, :class => "menuItem" %></div>
|
||||||
<div id="menuUsers" class="menu"><a class="menuItem" href="/users/add"><%=l(:label_new)%></a></div>
|
<div id="menuUsers" class="menu"><%= link_to l(:label_new), {:controller => 'users', :action => 'add' }, :class => "menuItem" %></a></div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% unless @project.nil? || @project.id.nil? %>
|
<% unless @project.nil? || @project.id.nil? %>
|
||||||
|
|
Loading…
Reference in New Issue