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