1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-06 09:03:25 +00:00

Move subtasks section on issues show view into a separate partial (#35671).

Patch by Mischa The Evil.


git-svn-id: http://svn.redmine.org/redmine/trunk@21190 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2021-08-17 09:42:54 +00:00
parent f49e147405
commit 001252d966
2 changed files with 13 additions and 10 deletions

View File

@ -0,0 +1,12 @@
<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 %>

View File

@ -105,16 +105,7 @@ end %>
<% 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 %>