% if !@issue.leaf? || @issue.parent || User.current.allowed_to?(:manage_subtasks, @project) %>
<%= l(:label_issue_hierarchy) %> <% if User.current.allowed_to?(:manage_subtasks, @project) %> (<%= link_to(l(:label_subtask_add), {:controller => 'issues', :action => 'new', :project_id => @project, :issue => {:parent_issue_id => @issue}}) %>) <% end %>
<% end %> <%= render_parents_and_subtree @issue %>