@@ -0,0 +1,27 | |||||
|
1 | <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 u.name, {:controller => 'timelog', :action => 'bulk_edit', :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[:update] %></li> | |||
|
19 | <% end -%> | |||
|
20 | <li><%= context_menu_link l(:label_nobody), {:controller => 'timelog', :action => 'bulk_edit', :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[:update] %></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 | </ul> |
@@ -735,6 +735,7 en: | |||||
735 | label_default_columns: Default columns |
|
735 | label_default_columns: Default columns | |
736 | label_no_change_option: (No change) |
|
736 | label_no_change_option: (No change) | |
737 | label_bulk_edit_selected_issues: Bulk edit selected issues |
|
737 | label_bulk_edit_selected_issues: Bulk edit selected issues | |
|
738 | label_bulk_edit_selected_time_entries: Bulk edit selected time entries | |||
738 | label_theme: Theme |
|
739 | label_theme: Theme | |
739 | label_default: Default |
|
740 | label_default: Default | |
740 | label_search_titles_only: Search titles only |
|
741 | label_search_titles_only: Search titles only |
General Comments 0
You need to be logged in to leave comments.
Login now