Created
October 31, 2014 15:58
-
-
Save anonymous/a64335b31834dfba2e15 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit fbe8901dcf2651c1e8670191476f49ffe2e7e597 | |
Author: Alex Dergachev <[email protected]> | |
Date: Sun Oct 23 22:39:23 2011 -0400 | |
core hack to add "Clone as subtask" link next to subtask Add link; refs #5849 | |
diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml | |
index b8fffa0..5d1f2e8 100644 | |
--- a/app/views/issues/show.rhtml | |
+++ b/app/views/issues/show.rhtml | |
@@ -85,6 +85,7 @@ | |
<div id="issue_tree"> | |
<div class="contextual"> | |
<%= link_to(l(:button_add), {:controller => 'issues', :action => 'new', :project_id => @project, :issue => {:parent_issue_id => @issue}}) if User.current.allowed_to?(:manage_subtasks, @project) %> | |
+ <%= link_to("Clone", {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue.id, :issue => {:parent_issue_id => @issue}}) if User.current.allowed_to?(:manage_subtasks, @project) %> | |
</div> | |
<p><strong><%=l(:label_subtask_plural)%></strong></p> | |
<%= render_descendants_tree(@issue) unless @issue.leaf? %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment