comparison app/views/issues/.svn/text-base/_relations.rhtml.svn-base @ 441:cbce1fd3b1b7 redmine-1.2

Update to Redmine 1.2-stable branch (Redmine SVN rev 6000)
author Chris Cannam
date Mon, 06 Jun 2011 14:24:13 +0100
parents 0579821a129a
children
comparison
equal deleted inserted replaced
245:051f544170fe 441:cbce1fd3b1b7
1 <div class="contextual"> 1 <div class="contextual">
2 <% if authorize_for('issue_relations', 'new') %> 2 <% if User.current.allowed_to?(:manage_issue_relations, @project) %>
3 <%= toggle_link l(:button_add), 'new-relation-form', {:focus => 'relation_issue_to_id'} %> 3 <%= toggle_link l(:button_add), 'new-relation-form', {:focus => 'relation_issue_to_id'} %>
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 @relations.present? %> 9 <% if @relations.present? %>
10 <table style="width:100%"> 10 <form>
11 <table class="list issues">
11 <% @relations.each do |relation| %> 12 <% @relations.each do |relation| %>
12 <tr> 13 <tr class="issue hascontextmenu">
13 <td><%= l(relation.label_for(@issue)) %> <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %> 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 %>
14 <%= h(relation.other_issue(@issue).project) + ' - ' if Setting.cross_project_issue_relations? %> 16 <%= h(relation.other_issue(@issue).project) + ' - ' if Setting.cross_project_issue_relations? %>
15 <%= link_to_issue(relation.other_issue(@issue), :truncate => 60) %> 17 <%= link_to_issue(relation.other_issue(@issue), :truncate => 60) %>
16 </td> 18 </td>
17 <td><%= relation.other_issue(@issue).status.name %></td> 19 <td class="status"><%= relation.other_issue(@issue).status.name %></td>
18 <td><%= format_date(relation.other_issue(@issue).start_date) %></td> 20 <td class="start_date"><%= format_date(relation.other_issue(@issue).start_date) %></td>
19 <td><%= format_date(relation.other_issue(@issue).due_date) %></td> 21 <td class="due_date"><%= format_date(relation.other_issue(@issue).due_date) %></td>
20 <td><%= link_to_remote(image_tag('delete.png'), { :url => {:controller => 'issue_relations', :action => 'destroy', :issue_id => @issue, :id => relation}, 22 <td class="buttons"><%= link_to_remote(image_tag('link_break.png'), { :url => {:controller => 'issue_relations', :action => 'destroy', :issue_id => @issue, :id => relation},
21 :method => :post 23 :method => :post
22 }, :title => l(:label_relation_delete)) if authorize_for('issue_relations', 'destroy') %></td> 24 }, :title => l(:label_relation_delete)) if authorize_for('issue_relations', 'destroy') %></td>
23 </tr> 25 </tr>
24 <% end %> 26 <% end %>
25 </table> 27 </table>
28 </form>
26 <% end %> 29 <% end %>
27 30
28 <% remote_form_for(:relation, @relation, 31 <% remote_form_for(:relation, @relation,
29 :url => {:controller => 'issue_relations', :action => 'new', :issue_id => @issue}, 32 :url => {:controller => 'issue_relations', :action => 'new', :issue_id => @issue},
30 :method => :post, 33 :method => :post,