summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-09-06 02:57:40 +0000
committerGo MAEDA <maeda@farend.jp>2024-09-06 02:57:40 +0000
commitd46ca0e46f9964d471be8d20d907077a2cb8f6be (patch)
tree4e523c5a621867a26cb2144a24b436d8ac5da33c /app
parentd06e63cd96e0ef9a5d72445b4a6f5b0e3d711651 (diff)
downloadredmine-d46ca0e46f9964d471be8d20d907077a2cb8f6be.tar.gz
redmine-d46ca0e46f9964d471be8d20d907077a2cb8f6be.zip
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
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/_list.html.erb16
1 files changed, 12 insertions, 4 deletions
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 @@
</tr>
<% end %>
<tr id="project-<%= entry.id %>" class="<%= cycle('odd', 'even') %> hascontextmenu <%= entry.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
- <% if @admin_list && !entry.scheduled_for_deletion? %>
- <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td>
+ <% if @admin_list %>
+ <% if !entry.scheduled_for_deletion? %>
+ <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td>
+ <% else %>
+ <td class="checkbox hide-when-print"></td>
+ <% 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? %>
- <td class="buttons"><%= link_to_context_menu %></td>
+ <% if @admin_list %>
+ <% if !entry.scheduled_for_deletion? %>
+ <td class="buttons"><%= link_to_context_menu %></td>
+ <% else %>
+ <td class="buttons"></td>
+ <% end %>
<% end %>
</tr>
<% end -%>