Feature #14741 ยป issue_14741_patch.diff
| config/locales/en.yml (working copy) | ||
|---|---|---|
|
button_edit: Edit
|
||
|
button_edit_associated_wikipage: "Edit associated Wiki page: %{page_title}"
|
||
|
button_add: Add
|
||
|
button_add_child_issue: Add Child Issue
|
||
|
button_change: Change
|
||
|
button_apply: Apply
|
||
|
button_clear: Clear
|
||
| app/views/context_menus/issues.html.erb (working copy) | ||
|---|---|---|
|
<li><%= context_menu_link l(:button_log_time), new_issue_time_entry_path(@issue),
|
||
|
:class => 'icon-time-add' %></li>
|
||
|
<% end %>
|
||
|
<li><%= context_menu_link l(:button_add_child_issue), new_project_issue_path(@project, :issue => { :tracker_id => @issue.tracker, :parent_issue_id => @issue }),
|
||
|
:class => 'icon-add', :disabled => !@can[:add_child_issue] %></li>
|
||
|
<li><%= context_menu_link l(:button_copy), project_copy_issue_path(@project, @issue),
|
||
|
:class => 'icon-copy', :disabled => !@can[:copy] %></li>
|
||
|
<% else %>
|
||
| app/controllers/context_menus_controller.rb (working copy) | ||
|---|---|---|
|
:log_time => (@project && User.current.allowed_to?(:log_time, @project)),
|
||
|
:update => (User.current.allowed_to?(:edit_issues, @projects) || (User.current.allowed_to?(:change_status, @projects) && !@allowed_statuses.blank?)),
|
||
|
:move => (@project && User.current.allowed_to?(:move_issues, @project)),
|
||
|
:add_child_issue => (@issue && @project.trackers.include?(@issue.tracker) && User.current.allowed_to?(:manage_subtasks, @project)),
|
||
|
:copy => (@issue && @project.trackers.include?(@issue.tracker) && User.current.allowed_to?(:add_issues, @project)),
|
||
|
:delete => User.current.allowed_to?(:delete_issues, @projects)
|
||
|
}
|
||