summaryrefslogtreecommitdiffstats
path: root/app/views/context_menus/issues.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/context_menus/issues.html.erb')
-rw-r--r--app/views/context_menus/issues.html.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/context_menus/issues.html.erb b/app/views/context_menus/issues.html.erb
index eef2bdea2..3a8e19cdd 100644
--- a/app/views/context_menus/issues.html.erb
+++ b/app/views/context_menus/issues.html.erb
@@ -151,6 +151,10 @@
<li><%= context_menu_link l(:button_log_time), new_issue_time_entry_path(@issue),
:class => 'icon icon-time-add' %></li>
<% end %>
+ <% if @can[:add_subtask] -%>
+ <li><%= context_menu_link l(:button_add_subtask), url_for_new_subtask(@issue),
+ :class => 'icon icon-add' %></li>
+ <% end %>
<li><%= context_menu_link l(:button_copy), project_copy_issue_path(@project, @issue),
:class => 'icon icon-copy', :disabled => !@can[:copy] %></li>
<% else %>