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