mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-10 04:35:24 +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:
parent
f49e147405
commit
001252d966
12
app/views/issues/_subtasks.html.erb
Normal file
12
app/views/issues/_subtasks.html.erb
Normal 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 %>
|
||||
@ -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 %>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user