To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / e1 / e16f06cc6d0cf53d877dce169bf005137a43e454.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (1.86 KB)
| 1 | 1296:038ba2d95de8 | Chris | <ul> |
|---|---|---|---|
| 2 | <% if !@time_entry.nil? -%> |
||
| 3 | <li><%= context_menu_link l(:button_edit), {:controller => 'timelog', :action => 'edit', :id => @time_entry},
|
||
| 4 | :class => 'icon-edit', :disabled => !@can[:edit] %></li> |
||
| 5 | <% else %> |
||
| 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> |
||
| 8 | <% end %> |
||
| 9 | |||
| 10 | <%= call_hook(:view_time_entries_context_menu_start, {:time_entries => @time_entries, :can => @can, :back => @back }) %>
|
||
| 11 | |||
| 12 | <% if @activities.present? -%> |
||
| 13 | <li class="folder"> |
||
| 14 | <a href="#" class="submenu"><%= l(:field_activity) %></a> |
||
| 15 | <ul> |
||
| 16 | <% @activities.each do |u| -%> |
||
| 17 | <li><%= context_menu_link h(u.name), {:controller => 'timelog', :action => 'bulk_update', :ids => @time_entries.collect(&:id), :time_entry => {'activity_id' => u}, :back_url => @back}, :method => :post,
|
||
| 18 | :selected => (@time_entry && u == @time_entry.activity), :disabled => !@can[:edit] %></li> |
||
| 19 | <% end -%> |
||
| 20 | <li><%= context_menu_link l(:label_none), {:controller => 'timelog', :action => 'bulk_update', :ids => @time_entries.collect(&:id), :time_entry => {'activity_id' => 'none'}, :back_url => @back}, :method => :post,
|
||
| 21 | :selected => (@time_entry && @time_entry.activity.nil?), :disabled => !@can[:edit] %></li> |
||
| 22 | </ul> |
||
| 23 | </li> |
||
| 24 | <% end %> |
||
| 25 | |||
| 26 | <%= call_hook(:view_time_entries_context_menu_end, {:time_entries => @time_entries, :can => @can, :back => @back }) %>
|
||
| 27 | |||
| 28 | <li> |
||
| 29 | <%= context_menu_link l(:button_delete), |
||
| 30 | {:controller => 'timelog', :action => 'destroy', :ids => @time_entries.collect(&:id), :back_url => @back},
|
||
| 31 | :method => :delete, :data => {:confirm => l(:text_time_entries_destroy_confirmation)}, :class => 'icon-del', :disabled => !@can[:delete] %>
|
||
| 32 | </li> |
||
| 33 | </ul> |