kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.8 KiB
36 lines
1.8 KiB
14 years ago
|
<p>
|
||
|
<strong><%=l(:label_related_issues)%></strong>
|
||
|
<% if authorize_for('issue_relations', 'new') %>
|
||
13 years ago
|
(<%= toggle_link l(:label_add_related_issues), 'new-relation-form', {:focus => 'relation_issue_to_id'} %>)
|
||
14 years ago
|
<% end %>
|
||
|
</p>
|
||
18 years ago
|
|
||
14 years ago
|
<% if @relations.present? %>
|
||
18 years ago
|
<table style="width:100%">
|
||
14 years ago
|
<% @relations.each do |relation| %>
|
||
18 years ago
|
<tr>
|
||
16 years ago
|
<td><%= l(relation.label_for(@issue)) %> <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %>
|
||
15 years ago
|
<%= h(relation.other_issue(@issue).project) + ' - ' if Setting.cross_project_issue_relations? %>
|
||
15 years ago
|
<%= link_to_issue(relation.other_issue(@issue), :truncate => 60) %>
|
||
15 years ago
|
</td>
|
||
13 years ago
|
<td><%= h(relation.other_issue(@issue).status.name) %></td>
|
||
18 years ago
|
<td><%= format_date(relation.other_issue(@issue).start_date) %></td>
|
||
|
<td><%= format_date(relation.other_issue(@issue).due_date) %></td>
|
||
14 years ago
|
<td><%= link_to_remote(image_tag('delete.png'), { :url => {:controller => 'issue_relations', :action => 'destroy', :issue_id => @issue, :id => relation},
|
||
18 years ago
|
:method => :post
|
||
13 years ago
|
},
|
||
|
:title => l(:label_relation_delete),
|
||
|
:alt => l(:label_relation_delete)) if authorize_for('issue_relations', 'destroy') %></td>
|
||
18 years ago
|
</tr>
|
||
|
<% end %>
|
||
|
</table>
|
||
17 years ago
|
<% end %>
|
||
18 years ago
|
|
||
14 years ago
|
<% remote_form_for(:relation, @relation,
|
||
17 years ago
|
:url => {:controller => 'issue_relations', :action => 'new', :issue_id => @issue},
|
||
|
:method => :post,
|
||
14 years ago
|
:complete => "Form.Element.focus('relation_issue_to_id');",
|
||
17 years ago
|
:html => {:id => 'new-relation-form', :style => (@relation ? '' : 'display: none;')}) do |f| %>
|
||
|
<%= render :partial => 'issue_relations/form', :locals => {:f => f}%>
|
||
18 years ago
|
<% end %>
|