@@ -10,22 +10,24 | |||
|
10 | 10 | <form> |
|
11 | 11 | <table class="list issues"> |
|
12 | 12 | <% @relations.each do |relation| %> |
|
13 | <tr class="issue hascontextmenu" id="relation-<%= relation.id %>"> | |
|
14 | <td class="checkbox"><%= check_box_tag("ids[]", relation.other_issue(@issue).id, false, :id => nil) %></td> | |
|
15 | <td class="subject"><%= l(relation.label_for(@issue)) %> <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %> | |
|
13 | <tr class="issue hascontextmenu" id="relation-<%= relation.id %>"> | |
|
14 | <td class="checkbox"><%= check_box_tag("ids[]", relation.other_issue(@issue).id, false, :id => nil) %></td> | |
|
15 | <td class="subject"> | |
|
16 | <%= l(relation.label_for(@issue)) %> | |
|
17 | <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %> | |
|
16 | 18 | <%= h(relation.other_issue(@issue).project) + ' - ' if Setting.cross_project_issue_relations? %> |
|
17 | 19 | <%= link_to_issue(relation.other_issue(@issue), :truncate => 60) %> |
|
18 | </td> | |
|
19 | <td class="status"><%=h relation.other_issue(@issue).status.name %></td> | |
|
20 | <td class="start_date"><%= format_date(relation.other_issue(@issue).start_date) %></td> | |
|
21 | <td class="due_date"><%= format_date(relation.other_issue(@issue).due_date) %></td> | |
|
22 | <td class="buttons"><%= link_to image_tag('link_break.png'), | |
|
23 | {:controller => 'issue_relations', :action => 'destroy', :id => relation}, | |
|
24 | :remote => true, | |
|
25 | :method => :delete, | |
|
26 | :data => {:confirm => l(:text_are_you_sure)}, | |
|
27 | :title => l(:label_relation_delete) if User.current.allowed_to?(:manage_issue_relations, @project) %></td> | |
|
28 | </tr> | |
|
20 | </td> | |
|
21 | <td class="status"><%=h relation.other_issue(@issue).status.name %></td> | |
|
22 | <td class="start_date"><%= format_date(relation.other_issue(@issue).start_date) %></td> | |
|
23 | <td class="due_date"><%= format_date(relation.other_issue(@issue).due_date) %></td> | |
|
24 | <td class="buttons"><%= link_to image_tag('link_break.png'), | |
|
25 | relation_path(relation), | |
|
26 | :remote => true, | |
|
27 | :method => :delete, | |
|
28 | :data => {:confirm => l(:text_are_you_sure)}, | |
|
29 | :title => l(:label_relation_delete) if User.current.allowed_to?(:manage_issue_relations, @project) %></td> | |
|
30 | </tr> | |
|
29 | 31 | <% end %> |
|
30 | 32 | </table> |
|
31 | 33 | </form> |
@@ -33,7 +35,7 | |||
|
33 | 35 | |
|
34 | 36 | <%= form_for @relation, { |
|
35 | 37 | :as => :relation, :remote => true, |
|
36 |
:url => |
|
|
38 | :url => issue_relations_path(@issue), | |
|
37 | 39 | :method => :post, |
|
38 | 40 | :html => {:id => 'new-relation-form', :style => (@relation ? '' : 'display: none;')} |
|
39 | 41 | } do |f| %> |
General Comments 0
You need to be logged in to leave comments.
Login now