3 |
3 |
|
4 |
4 |
<% if @issue -%>
|
5 |
5 |
<li><%= context_menu_link l(:button_edit), edit_issue_path(@issue),
|
6 |
|
:class => 'icon-edit', :disabled => !@can[:edit] %></li>
|
|
6 |
:class => 'icon icon-edit', :disabled => !@can[:edit] %></li>
|
7 |
7 |
<% else %>
|
8 |
8 |
<li><%= context_menu_link l(:button_edit), bulk_edit_issues_path(:ids => @issue_ids),
|
9 |
|
:class => 'icon-edit', :disabled => !@can[:edit] %></li>
|
|
9 |
:class => 'icon icon-edit', :disabled => !@can[:edit] %></li>
|
10 |
10 |
<% end %>
|
11 |
11 |
|
12 |
12 |
<% if @allowed_statuses.present? %>
|
... | ... | |
124 |
124 |
<li><%= context_menu_link l(:button_add),
|
125 |
125 |
new_watchers_path(:object_type => 'issue', :object_id => @issue_ids),
|
126 |
126 |
:remote => true,
|
127 |
|
:class => 'icon-add' %></li>
|
|
127 |
:class => 'icon icon-add' %></li>
|
128 |
128 |
</ul>
|
129 |
129 |
</li>
|
130 |
130 |
<% end %>
|
... | ... | |
135 |
135 |
|
136 |
136 |
<% unless @issue %>
|
137 |
137 |
<li><%= context_menu_link l(:button_filter), _project_issues_path(@project, :set_filter => 1, :status_id => "*", :issue_id => @issue_ids.join(",")),
|
138 |
|
:class => 'icon-list' %></li>
|
|
138 |
:class => 'icon icon-list' %></li>
|
139 |
139 |
<% end %>
|
140 |
140 |
|
141 |
141 |
<% if @issue.present? %>
|
142 |
142 |
<% if @can[:log_time] -%>
|
143 |
143 |
<li><%= context_menu_link l(:button_log_time), new_issue_time_entry_path(@issue),
|
144 |
|
:class => 'icon-time-add' %></li>
|
|
144 |
:class => 'icon icon-time-add' %></li>
|
145 |
145 |
<% end %>
|
146 |
146 |
<li><%= context_menu_link l(:button_copy), project_copy_issue_path(@project, @issue),
|
147 |
|
:class => 'icon-copy', :disabled => !@can[:copy] %></li>
|
|
147 |
:class => 'icon icon-copy', :disabled => !@can[:copy] %></li>
|
148 |
148 |
<% else %>
|
149 |
149 |
<li><%= context_menu_link l(:button_copy), bulk_edit_issues_path(:ids => @issue_ids, :copy => '1'),
|
150 |
|
:class => 'icon-copy', :disabled => !@can[:copy] %></li>
|
|
150 |
:class => 'icon icon-copy', :disabled => !@can[:copy] %></li>
|
151 |
151 |
<% end %>
|
152 |
152 |
<li><%= context_menu_link l(:button_delete), issues_path(:ids => @issue_ids, :back_url => @back),
|
153 |
|
:method => :delete, :data => {:confirm => issues_destroy_confirmation_message(@issues)}, :class => 'icon-del', :disabled => !@can[:delete] %></li>
|
|
153 |
:method => :delete, :data => {:confirm => issues_destroy_confirmation_message(@issues)}, :class => 'icon icon-del', :disabled => !@can[:delete] %></li>
|
154 |
154 |
|
155 |
155 |
<%= call_hook(:view_issues_context_menu_end, {:issues => @issues, :can => @can, :back => @back }) %>
|
156 |
156 |
</ul>
|