@@ -1,31 +1,32 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <% if authorize_for('issue_relations', 'new') %> |
|
3 | 3 | <%= toggle_link l(:button_add), 'new-relation-form'%> |
|
4 | 4 | <% end %> |
|
5 | 5 | </div> |
|
6 | 6 | |
|
7 | 7 | <p><strong><%=l(:label_related_issues)%></strong></p> |
|
8 | 8 | |
|
9 | 9 | <% if @issue.relations.any? %> |
|
10 | 10 | <table style="width:100%"> |
|
11 | 11 | <% @issue.relations.each do |relation| %> |
|
12 | 12 | <tr> |
|
13 |
<td><%= l(relation.label_for(@issue)) %> <%= "(#{lwr(:actionview_datehelper_time_in_words_day, relation.delay)})" if relation.delay && relation.delay != 0 %> |
|
|
13 | <td><%= l(relation.label_for(@issue)) %> <%= "(#{lwr(:actionview_datehelper_time_in_words_day, relation.delay)})" if relation.delay && relation.delay != 0 %> | |
|
14 | <%= h(relation.other_issue(@issue).project) + ' - ' if Setting.cross_project_issue_relations? %> <%= link_to_issue relation.other_issue(@issue) %></td> | |
|
14 | 15 | <td><%=h relation.other_issue(@issue).subject %></td> |
|
15 | 16 | <td><%= relation.other_issue(@issue).status.name %></td> |
|
16 | 17 | <td><%= format_date(relation.other_issue(@issue).start_date) %></td> |
|
17 | 18 | <td><%= format_date(relation.other_issue(@issue).due_date) %></td> |
|
18 | 19 | <td><%= link_to_remote(image_tag('delete.png'), { :url => {:controller => 'issue_relations', :action => 'destroy', :issue_id => @issue, :id => relation}, |
|
19 | 20 | :method => :post |
|
20 | 21 | }, :title => l(:label_relation_delete)) if authorize_for('issue_relations', 'destroy') %></td> |
|
21 | 22 | </tr> |
|
22 | 23 | <% end %> |
|
23 | 24 | </table> |
|
24 | 25 | <% end %> |
|
25 | 26 | |
|
26 | 27 | <% remote_form_for(:relation, @relation, |
|
27 | 28 | :url => {:controller => 'issue_relations', :action => 'new', :issue_id => @issue}, |
|
28 | 29 | :method => :post, |
|
29 | 30 | :html => {:id => 'new-relation-form', :style => (@relation ? '' : 'display: none;')}) do |f| %> |
|
30 | 31 | <%= render :partial => 'issue_relations/form', :locals => {:f => f}%> |
|
31 | 32 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now