Project

General

Profile

Feature #28471 » query_links_for_subtasks_marius_flavor.diff

Bernhard Rohloff, 2020-10-27 11:19

View differences:

app/views/issues/show.html.erb (Arbeitskopie)
105 105
<div class="contextual">
106 106
  <%= link_to_new_subtask(@issue) if User.current.allowed_to?(:manage_subtasks, @project) %>
107 107
</div>
108
<p><strong><%=l(:label_subtask_plural)%></strong></p>
108
<p>
109
<strong><%=l(:label_subtask_plural)%></strong>
110
<% if !@issue.leaf? %>
111
  (<%= link_to(l(:label_x_issues, :count => @issue.descendants.count),
112
                  issues_path(:issue_id => @issue.descendants.collect(&:id).join(','), :set_filter => true, :status_id => '*')) %>
113
  : <%= link_to_if( @issue.descendants.select(&:closed?).count > 0,
114
                  l(:label_x_closed_issues_abbr, :count => @issue.descendants.select(&:closed?).count ),
115
                  issues_path( :parent_id => @issue.id , :set_filter => true, :status_id => 'c')) %>
116
  &#8212;
117
  <%= link_to_if( @issue.descendants.open.count > 0,
118
                 l(:label_x_open_issues_abbr, :count => @issue.descendants.open.count ),
119
                 issues_path( :parent_id => @issue.id , :set_filter => true, :status_id => 'o')) %>)
120
<% end %>
121
</p>
109 122
<%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do %>
110 123
<%= render_descendants_tree(@issue) unless @issue.leaf? %>
111 124
<% end %>
(4-4/10)