Defect #29602 » fix_context_menu.patch
| app/views/context_menus/time_entries.html.erb | ||
|---|---|---|
| 1 | 1 |
<ul> |
| 2 | 2 |
<% if !@time_entry.nil? -%> |
| 3 | 3 |
<li><%= context_menu_link l(:button_edit), {:controller => 'timelog', :action => 'edit', :id => @time_entry},
|
| 4 |
:class => 'icon-edit', :disabled => !@can[:edit] %></li> |
|
| 4 |
:class => 'icon icon-edit', :disabled => !@can[:edit] %></li>
|
|
| 5 | 5 |
<% else %> |
| 6 | 6 |
<li><%= context_menu_link l(:button_edit), {:controller => 'timelog', :action => 'bulk_edit', :ids => @time_entries.collect(&:id)},
|
| 7 |
:class => 'icon-edit', :disabled => !@can[:edit] %></li> |
|
| 7 |
:class => 'icon icon-edit', :disabled => !@can[:edit] %></li>
|
|
| 8 | 8 |
<% end %> |
| 9 | 9 | |
| 10 | 10 |
<%= call_hook(:view_time_entries_context_menu_start, {:time_entries => @time_entries, :can => @can, :back => @back }) %>
|
| ... | ... | |
| 40 | 40 |
<li> |
| 41 | 41 |
<%= context_menu_link l(:button_delete), |
| 42 | 42 |
{:controller => 'timelog', :action => 'destroy', :ids => @time_entries.collect(&:id), :back_url => @back},
|
| 43 |
:method => :delete, :data => {:confirm => l(:text_time_entries_destroy_confirmation)}, :class => 'icon-del', :disabled => !@can[:delete] %>
|
|
| 43 |
:method => :delete, :data => {:confirm => l(:text_time_entries_destroy_confirmation)}, :class => 'icon icon-del', :disabled => !@can[:delete] %>
|
|
| 44 | 44 |
</li> |
| 45 | 45 |
</ul> |
- « Previous
- 1
- 2
- Next »