Project

General

Profile

Actions

Defect #44462

open

Project list rows show the context menu cursor although no context menu is available

Added by Mizuki ISHIKAWA about 6 hours ago. Updated about 5 hours ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Projects
Target version:
Resolution:
Affected version:

Description

On the Projects page (display type: list), rows use the context menu cursor, but right clicking only opens the browser's own menu. source:trunk/app/views/projects/_list.html.erb adds the hascontextmenu class to every row, while the context menu itself is available on the administration project list only (#33422).

diff --git a/app/views/projects/_list.html.erb b/app/views/projects/_list.html.erb
index 6bfd5eb01a..2f5c83f6a5 100644
--- a/app/views/projects/_list.html.erb
+++ b/app/views/projects/_list.html.erb
@@ -40,7 +40,7 @@
       <% end %>
     </tr>
   <% end %>
-  <tr id="project-<%= entry.id %>" class="<%= cycle('odd', 'even') %> hascontextmenu <%= entry.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
+  <tr id="project-<%= entry.id %>" class="<%= cycle('odd', 'even') %> <%= 'hascontextmenu' if @admin_list %> <%= entry.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
     <% if @admin_list %>
       <% if !entry.scheduled_for_deletion? %>
         <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td>

Actions

Also available in: Atom PDF