Project

General

Profile

Feature #14741 ยป issue_14741_patch.diff

Jun Zhang, 2013-08-28 10:19

View differences:

config/locales/en.yml (working copy)
917 917
  button_edit: Edit
918 918
  button_edit_associated_wikipage: "Edit associated Wiki page: %{page_title}"
919 919
  button_add: Add
920
  button_add_child_issue: Add Child Issue
920 921
  button_change: Change
921 922
  button_apply: Apply
922 923
  button_clear: Clear
app/views/context_menus/issues.html.erb (working copy)
126 126
  <li><%= context_menu_link l(:button_log_time), new_issue_time_entry_path(@issue),
127 127
          :class => 'icon-time-add' %></li>
128 128
  <% end %>
129
  <li><%= context_menu_link l(:button_add_child_issue), new_project_issue_path(@project, :issue => { :tracker_id => @issue.tracker, :parent_issue_id => @issue }),
130
          :class => 'icon-add', :disabled => !@can[:add_child_issue] %></li>
129 131
  <li><%= context_menu_link l(:button_copy), project_copy_issue_path(@project, @issue),
130 132
          :class => 'icon-copy', :disabled => !@can[:copy] %></li>
131 133
<% else %>
app/controllers/context_menus_controller.rb (working copy)
33 33
            :log_time => (@project && User.current.allowed_to?(:log_time, @project)),
34 34
            :update => (User.current.allowed_to?(:edit_issues, @projects) || (User.current.allowed_to?(:change_status, @projects) && !@allowed_statuses.blank?)),
35 35
            :move => (@project && User.current.allowed_to?(:move_issues, @project)),
36
            :add_child_issue => (@issue && @project.trackers.include?(@issue.tracker) && User.current.allowed_to?(:manage_subtasks, @project)),
36 37
            :copy => (@issue && @project.trackers.include?(@issue.tracker) && User.current.allowed_to?(:add_issues, @project)),
37 38
            :delete => User.current.allowed_to?(:delete_issues, @projects)
38 39
            }
    (1-1/1)