<p><strong><%=l(:label_related_issues)%></strong></p>
<% if @relations.present? %>
-<table style="width:100%">
+<form>
+<table class="list issues">
<% @relations.each do |relation| %>
-<tr>
-<td><%= l(relation.label_for(@issue)) %> <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %>
+<tr class="issue hascontextmenu">
+<td class="checkbox"><%= check_box_tag("ids[]", relation.other_issue(@issue).id, false, :id => nil) %></td>
+<td class="subject"><%= l(relation.label_for(@issue)) %> <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %>
<%= h(relation.other_issue(@issue).project) + ' - ' if Setting.cross_project_issue_relations? %>
<%= link_to_issue(relation.other_issue(@issue), :truncate => 60) %>
</td>
-<td><%= relation.other_issue(@issue).status.name %></td>
-<td><%= format_date(relation.other_issue(@issue).start_date) %></td>
-<td><%= format_date(relation.other_issue(@issue).due_date) %></td>
-<td><%= link_to_remote(image_tag('delete.png'), { :url => {:controller => 'issue_relations', :action => 'destroy', :issue_id => @issue, :id => relation},
+<td class="status"><%= relation.other_issue(@issue).status.name %></td>
+<td class="start_date"><%= format_date(relation.other_issue(@issue).start_date) %></td>
+<td class="due_date"><%= format_date(relation.other_issue(@issue).due_date) %></td>
+<td class="buttons"><%= link_to_remote(image_tag('delete.png'), { :url => {:controller => 'issue_relations', :action => 'destroy', :issue_id => @issue, :id => relation},
:method => :post
}, :title => l(:label_relation_delete)) if authorize_for('issue_relations', 'destroy') %></td>
</tr>
<% end %>
</table>
+</form>
<% end %>
<% remote_form_for(:relation, @relation,
div.issue div.subject>div>p { margin-top: 0.5em; }
div.issue div.subject h3 {margin: 0; margin-bottom: 0.1em;}
-#issue_tree table.issues { border: 0; }
-#issue_tree td.checkbox {display:none;}
+#issue_tree table.issues, #relations table.issues { border: 0; }
+#issue_tree td.checkbox, #relations td.checkbox {display:none;}
+#relations td.buttons {padding:0;}
fieldset.collapsible { border-width: 1px 0 0 0; font-size: 0.9em; }
fieldset.collapsible legend { padding-left: 16px; background: url(../images/arrow_expanded.png) no-repeat 0% 40%; cursor:pointer; }