1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-24 17:31:14 +00:00
redmine/app/views/issues/_relations.html.erb
Go MAEDA d276dca5c5 Query links for related issues on issue page (#35559).
Patch by Takenori TAKAKI.


git-svn-id: http://svn.redmine.org/redmine/trunk@21200 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-08-23 12:59:48 +00:00

26 lines
870 B
Plaintext

<div class="contextual">
<% if User.current.allowed_to?(:manage_issue_relations, @project) %>
<%= toggle_link l(:button_add), 'new-relation-form', {:focus => 'relation_issue_to_id'} %>
<% end %>
</div>
<p>
<strong><%=l(:label_related_issues)%></strong>
<%= render_relations_stats(@issue, @relations) if @relations.present? %>
</p>
<% if @relations.present? %>
<%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do %>
<%= render_issue_relations(@issue, @relations) %>
<% end %>
<% end %>
<%= form_for @relation, {
:as => :relation, :remote => true,
:url => issue_relations_path(@issue),
:method => :post,
:html => {:id => 'new-relation-form', :style => 'display: none;'}
} do |f| %>
<%= render :partial => 'issue_relations/form', :locals => {:f => f}%>
<% end %>