]> source.dussan.org Git - redmine.git/commitdiff
Fixed "Projects" drop-down menu for IE.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 26 May 2007 15:53:15 +0000 (15:53 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 26 May 2007 15:53:15 +0000 (15:53 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@542 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/layouts/base.rhtml

index 7d549248d34902e3dd0c9984f425dca86d825fa3..62dd48af20e06ecc1fd6ab3873564a411aca2f89 100644 (file)
        
        <% if loggedin? and @logged_in_user.memberships.any? %>
       <li class="submenu"><%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => "icon icon-projects", :onmouseover => "buttonMouseover(event, 'menuAllProjects');" %></li>
-      <div id="menuAllProjects" class="menu" onmouseover="menuMouseover(event)">
-      <%= link_to l(:label_project_all), {:controller => 'projects' }, :class => "menuItem" %>
-      <% @logged_in_user.memberships.find(:all, :limit => 20).each do |membership| %>
-        <%= link_to membership.project.name, {:controller => 'projects',:action => 'show', :id => membership.project }, :class => "menuItem" %>
-      <% end %>
-      </div>
        <% else %>
          <li><%= link_to l(:label_project_plural), { :controller => 'projects' }, :class => "icon icon-projects" %></li>
        <% end %>
     </div>
     <% end %>
 
+    <% if loggedin? and @logged_in_user.memberships.any? %>
+        <div id="menuAllProjects" class="menu" onmouseover="menuMouseover(event)">
+        <%= link_to l(:label_project_all), {:controller => 'projects' }, :class => "menuItem" %>
+        <% @logged_in_user.memberships.find(:all, :limit => 20).each do |membership| %>
+            <%= link_to membership.project.name, {:controller => 'projects',:action => 'show', :id => membership.project }, :class => "menuItem" %>
+        <% end %>
+        </div>
+    <% end %>
        
        <div id="subcontent">