0001-Move-subtasks-section-of-issues-show-to-separate-par.patch

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

Download (1.82 KB)

View differences:

app/views/issues/_subtasks.html.erb
1
<div class="contextual">
2
  <%= link_to_new_subtask(@issue) if User.current.allowed_to?(:manage_subtasks, @project) %>
3
</div>
4

  
5
<p>
6
  <strong><%=l(:label_subtask_plural)%></strong>
7
  <%= render_descendants_stats(@issue) unless @issue.leaf? %>
8
</p>
9

  
10
<%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do %>
11
  <%= render_descendants_tree(@issue) unless @issue.leaf? %>
12
<% end %>
app/views/issues/show.html.erb
105 105
<% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %>
106 106
<hr />
107 107
<div id="issue_tree">
108
<div class="contextual">
109
  <%= link_to_new_subtask(@issue) if User.current.allowed_to?(:manage_subtasks, @project) %>
110
</div>
111
<p>
112
  <strong><%=l(:label_subtask_plural)%></strong>
113
  <%= render_descendants_stats(@issue) unless @issue.leaf? %>
114
</p>
115
<%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do %>
116
<%= render_descendants_tree(@issue) unless @issue.leaf? %>
117
<% end %>
108
<%= render :partial => 'subtasks' %>
118 109
</div>
119 110
<% end %>
120 111

  
121
-