From d46ca0e46f9964d471be8d20d907077a2cb8f6be Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 6 Sep 2024 02:57:40 +0000 Subject: Fix broken project list layout for projects scheduled for deletion (#41217). Patch by Liane Hampe (user:liane_hampe). git-svn-id: https://svn.redmine.org/redmine/trunk@23026 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/_list.html.erb | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'app') diff --git a/app/views/projects/_list.html.erb b/app/views/projects/_list.html.erb index 03c5ce059..f5eae37a6 100644 --- a/app/views/projects/_list.html.erb +++ b/app/views/projects/_list.html.erb @@ -41,14 +41,22 @@ <% end %> "> - <% if @admin_list && !entry.scheduled_for_deletion? %> - <%= check_box_tag("ids[]", entry.id, false, :id => nil) %> + <% if @admin_list %> + <% if !entry.scheduled_for_deletion? %> + <%= check_box_tag("ids[]", entry.id, false, :id => nil) %> + <% else %> + + <% end %> <% end %> <% @query.inline_columns.each do |column| %> <%= content_tag('td', column_content(column, entry), :class => column.css_classes) %> <% end %> - <% if @admin_list && !entry.scheduled_for_deletion? %> - <%= link_to_context_menu %> + <% if @admin_list %> + <% if !entry.scheduled_for_deletion? %> + <%= link_to_context_menu %> + <% else %> + + <% end %> <% end %> <% end -%> -- cgit v1.2.3