Project

General

Profile

Feature #35671 ยป 0001-Move-subtasks-section-of-issues-show-to-separate-par.patch

Patch against trunk@r21131 - Mischa The Evil, 2021-08-03 01:29

View differences:

app/views/issues/_subtasks.html.erb
<div class="contextual">
<%= link_to_new_subtask(@issue) if User.current.allowed_to?(:manage_subtasks, @project) %>
</div>
<p>
<strong><%=l(:label_subtask_plural)%></strong>
<%= render_descendants_stats(@issue) unless @issue.leaf? %>
</p>
<%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do %>
<%= render_descendants_tree(@issue) unless @issue.leaf? %>
<% end %>
app/views/issues/show.html.erb
<% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %>
<hr />
<div id="issue_tree">
<div class="contextual">
<%= link_to_new_subtask(@issue) if User.current.allowed_to?(:manage_subtasks, @project) %>
</div>
<p>
<strong><%=l(:label_subtask_plural)%></strong>
<%= render_descendants_stats(@issue) unless @issue.leaf? %>
</p>
<%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do %>
<%= render_descendants_tree(@issue) unless @issue.leaf? %>
<% end %>
<%= render :partial => 'subtasks' %>
</div>
<% end %>
    (1-1/1)