##// END OF EJS Templates
replace shoulder "with a due_date attribute" context of unit IssuesHelperTest and use with_settings...
replace shoulder "with a due_date attribute" context of unit IssuesHelperTest and use with_settings git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10263 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r9779:e74d4ecf5fa7
r10080:8eb39d682d1c
Show More
issues.html.erb
141 lines | 7.3 KiB | text/plain | TextLexer
Jean-Philippe Lang
Added AJAX based context menu on the project issue list that provide shortcuts for editing, re-assigning, changing the status or the priority, moving or deleting an issue....
r859 <ul>
Eric Davis
Added plugin hooks to the context menu...
r2534 <%= call_hook(:view_issues_context_menu_start, {:issues => @issues, :can => @can, :back => @back }) %>
Jean-Philippe Lang
Issue list now supports bulk edit/move/delete (#563, #607). For now, issues from different projects can not be bulk edited/moved/deleted at once....
r1116 <% if !@issue.nil? -%>
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 <li><%= context_menu_link l(:button_edit), {:controller => 'issues', :action => 'edit', :id => @issue},
:class => 'icon-edit', :disabled => !@can[:edit] %></li>
Jean-Baptiste Barth
Allow mass status update through context menu. #3411...
r3941 <% else %>
Jean-Philippe Lang
Compute issue ids array only once....
r9779 <li><%= context_menu_link l(:button_edit), {:controller => 'issues', :action => 'bulk_edit', :ids => @issue_ids},
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 :class => 'icon-edit', :disabled => !@can[:edit] %></li>
Jean-Baptiste Barth
Allow mass status update through context menu. #3411...
r3941 <% end %>
Jean-Baptiste Barth
Fixed potential nil method errors when trying to access /issues/context_menu with GET. #6750...
r4188 <% if @allowed_statuses.present? %>
Toshi MARUYAMA
remove trailing white-spaces from app/views/context_menus/issues.html.erb...
r7257 <li class="folder">
Jean-Philippe Lang
Do not hide context menu when clicking on a folder menu item....
r8709 <a href="#" class="submenu"><%= l(:field_status) %></a>
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 <ul>
Jean-Philippe Lang
Only show allowed statuses in context menu (#10181)....
r8705 <% @allowed_statuses.each do |s| -%>
Jean-Philippe Lang
Compute issue ids array only once....
r9779 <li><%= context_menu_link h(s.name), {:controller => 'issues', :action => 'bulk_update', :ids => @issue_ids, :issue => {:status_id => s}, :back_url => @back}, :method => :post,
Jean-Philippe Lang
Only show allowed statuses in context menu (#10181)....
r8705 :selected => (@issue && s == @issue.status), :disabled => !@can[:update] %></li>
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 <% end -%>
</ul>
</li>
Jean-Baptiste Barth
Allow mass status update through context menu. #3411...
r3941 <% end %>
Jean-Philippe Lang
One-click bulk edition using the issue list context menu within the same project (#1770)....
r1764
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 <% unless @trackers.nil? %>
Toshi MARUYAMA
remove trailing white-spaces from app/views/context_menus/issues.html.erb...
r7257 <li class="folder">
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 <a href="#" class="submenu"><%= l(:field_tracker) %></a>
<ul>
<% @trackers.each do |t| -%>
Jean-Philippe Lang
Compute issue ids array only once....
r9779 <li><%= context_menu_link h(t.name), {:controller => 'issues', :action => 'bulk_update', :ids => @issue_ids, :issue => {'tracker_id' => t}, :back_url => @back}, :method => :post,
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 :selected => (@issue && t == @issue.tracker), :disabled => !@can[:edit] %></li>
<% end -%>
</ul>
</li>
<% end %>
Jean-Baptiste Barth
Do not display items without valid selection in context menu when on different projects. #4998...
r3945
Jean-Philippe Lang
Ability to disable standard fields on a per tracker basis (#1091)....
r9729 <% if @safe_attributes.include?('priority_id') -%>
Toshi MARUYAMA
remove trailing white-spaces from app/views/context_menus/issues.html.erb...
r7257 <li class="folder">
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 <a href="#" class="submenu"><%= l(:field_priority) %></a>
<ul>
<% @priorities.each do |p| -%>
Jean-Philippe Lang
Compute issue ids array only once....
r9779 <li><%= context_menu_link h(p.name), {:controller => 'issues', :action => 'bulk_update', :ids => @issue_ids, :issue => {'priority_id' => p}, :back_url => @back}, :method => :post,
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 :selected => (@issue && p == @issue.priority), :disabled => (!@can[:edit] || @issues.detect {|i| !i.leaf?}) %></li>
<% end -%>
</ul>
</li>
Jean-Philippe Lang
Ability to disable standard fields on a per tracker basis (#1091)....
r9729 <% end %>
Jean-Baptiste Barth
Do not display items without valid selection in context menu when on different projects. #4998...
r3945
Jean-Philippe Lang
Show shared versions when editing issues from different projects with the context menu (#11345)....
r9778 <% if @safe_attributes.include?('fixed_version_id') && @versions.any? -%>
Toshi MARUYAMA
remove trailing white-spaces from app/views/context_menus/issues.html.erb...
r7257 <li class="folder">
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 <a href="#" class="submenu"><%= l(:field_fixed_version) %></a>
<ul>
Jean-Philippe Lang
Show shared versions when editing issues from different projects with the context menu (#11345)....
r9778 <% @versions.sort.each do |v| -%>
Jean-Philippe Lang
Compute issue ids array only once....
r9779 <li><%= context_menu_link format_version_name(v), {:controller => 'issues', :action => 'bulk_update', :ids => @issue_ids, :issue => {'fixed_version_id' => v}, :back_url => @back}, :method => :post,
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 :selected => (@issue && v == @issue.fixed_version), :disabled => !@can[:update] %></li>
<% end -%>
Jean-Philippe Lang
Compute issue ids array only once....
r9779 <li><%= context_menu_link l(:label_none), {:controller => 'issues', :action => 'bulk_update', :ids => @issue_ids, :issue => {'fixed_version_id' => 'none'}, :back_url => @back}, :method => :post,
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 :selected => (@issue && @issue.fixed_version.nil?), :disabled => !@can[:update] %></li>
</ul>
</li>
<% end %>
Jean-Philippe Lang
Ability to disable standard fields on a per tracker basis (#1091)....
r9729
<% if @safe_attributes.include?('assigned_to_id') && @assignables.present? -%>
Toshi MARUYAMA
remove trailing white-spaces from app/views/context_menus/issues.html.erb...
r7257 <li class="folder">
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 <a href="#" class="submenu"><%= l(:field_assigned_to) %></a>
<ul>
Jean-Philippe Lang
Adds a <<me>> option for assignee in the context menu (#1102)....
r8569 <% if @assignables.include?(User.current) %>
Jean-Philippe Lang
Compute issue ids array only once....
r9779 <li><%= context_menu_link "<< #{l(:label_me)} >>", {:controller => 'issues', :action => 'bulk_update', :ids => @issue_ids, :issue => {'assigned_to_id' => User.current}, :back_url => @back}, :method => :post,
Jean-Philippe Lang
Adds a <<me>> option for assignee in the context menu (#1102)....
r8569 :disabled => !@can[:update] %></li>
<% end %>
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 <% @assignables.each do |u| -%>
Jean-Philippe Lang
Compute issue ids array only once....
r9779 <li><%= context_menu_link h(u.name), {:controller => 'issues', :action => 'bulk_update', :ids => @issue_ids, :issue => {'assigned_to_id' => u}, :back_url => @back}, :method => :post,
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 :selected => (@issue && u == @issue.assigned_to), :disabled => !@can[:update] %></li>
<% end -%>
Jean-Philippe Lang
Compute issue ids array only once....
r9779 <li><%= context_menu_link l(:label_nobody), {:controller => 'issues', :action => 'bulk_update', :ids => @issue_ids, :issue => {'assigned_to_id' => 'none'}, :back_url => @back}, :method => :post,
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 :selected => (@issue && @issue.assigned_to.nil?), :disabled => !@can[:update] %></li>
</ul>
</li>
<% end %>
Jean-Philippe Lang
Ability to disable standard fields on a per tracker basis (#1091)....
r9729
<% if @safe_attributes.include?('category_id') && @project && @project.issue_categories.any? -%>
Toshi MARUYAMA
remove trailing white-spaces from app/views/context_menus/issues.html.erb...
r7257 <li class="folder">
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 <a href="#" class="submenu"><%= l(:field_category) %></a>
<ul>
<% @project.issue_categories.each do |u| -%>
Jean-Philippe Lang
Compute issue ids array only once....
r9779 <li><%= context_menu_link h(u.name), {:controller => 'issues', :action => 'bulk_update', :ids => @issue_ids, :issue => {'category_id' => u}, :back_url => @back}, :method => :post,
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 :selected => (@issue && u == @issue.category), :disabled => !@can[:update] %></li>
<% end -%>
Jean-Philippe Lang
Compute issue ids array only once....
r9779 <li><%= context_menu_link l(:label_none), {:controller => 'issues', :action => 'bulk_update', :ids => @issue_ids, :issue => {'category_id' => 'none'}, :back_url => @back}, :method => :post,
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 :selected => (@issue && @issue.category.nil?), :disabled => !@can[:update] %></li>
</ul>
</li>
<% end -%>
Jean-Baptiste Barth
Do not display items without valid selection in context menu when on different projects. #4998...
r3945
Jean-Philippe Lang
Ability to disable standard fields on a per tracker basis (#1091)....
r9729 <% if @safe_attributes.include?('done_ratio') && Issue.use_field_for_done_ratio? %>
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 <li class="folder">
<a href="#" class="submenu"><%= l(:field_done_ratio) %></a>
<ul>
<% (0..10).map{|x|x*10}.each do |p| -%>
Jean-Philippe Lang
Compute issue ids array only once....
r9779 <li><%= context_menu_link "#{p}%", {:controller => 'issues', :action => 'bulk_update', :ids => @issue_ids, :issue => {'done_ratio' => p}, :back_url => @back}, :method => :post,
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 :selected => (@issue && p == @issue.done_ratio), :disabled => (!@can[:edit] || @issues.detect {|i| !i.leaf?}) %></li>
<% end -%>
</ul>
</li>
Eric Davis
Adds a Setting to control how an Issue's done_ratio is calculated:...
r3037 <% end %>
Jean-Baptiste Barth
Do not display items without valid selection in context menu when on different projects. #4998...
r3945
Jean-Philippe Lang
Bulk-edit custom fields through context menu (#6296)....
r8704 <% @options_by_custom_field.each do |field, options| %>
<li class="folder">
<a href="#" class="submenu"><%= h(field.name) %></a>
<ul>
<% options.each do |text, value| %>
<li><%= bulk_update_custom_field_context_menu_link(field, text, value || text) %></li>
<% end %>
<% unless field.is_required? %>
<li><%= bulk_update_custom_field_context_menu_link(field, l(:label_none), '') %></li>
<% end %>
</ul>
</li>
<% end %>
Jean-Philippe Lang
One-click bulk edition using the issue list context menu within the same project (#1770)....
r1764 <% if !@issue.nil? %>
Toshi MARUYAMA
replace tabs to spaces at app/views/context_menus/issues.html.erb...
r7227 <% if @can[:log_time] -%>
<li><%= context_menu_link l(:button_log_time), {:controller => 'timelog', :action => 'new', :issue_id => @issue},
:class => 'icon-time-add' %></li>
<% end %>
<% if User.current.logged? %>
<li><%= watcher_link(@issue, User.current) %></li>
<% end %>
Jean-Philippe Lang
One-click bulk edition using the issue list context menu within the same project (#1770)....
r1764 <% end %>
Eric Davis
Enhanced the Issue Bulk Copy feature:...
r3008 <% if @issue.present? %>
Jean-Philippe Lang
Use the regular issue form to copy a single issue....
r8432 <li><%= context_menu_link l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue},
:class => 'icon-copy', :disabled => !@can[:copy] %></li>
<% else %>
Jean-Philippe Lang
Compute issue ids array only once....
r9779 <li><%= context_menu_link l(:button_copy), {:controller => 'issues', :action => 'bulk_edit', :ids => @issue_ids, :copy => '1'},
Jean-Philippe Lang
Use the regular issue form to copy a single issue....
r8432 :class => 'icon-copy', :disabled => !@can[:move] %></li>
<% end %>
Jean-Philippe Lang
Compute issue ids array only once....
r9779 <li><%= context_menu_link l(:button_delete), issues_path(:ids => @issue_ids, :back_url => @back),
Jean-Philippe Lang
Deprecated :confirm => 'Text' option....
r9754 :method => :delete, :data => {:confirm => issues_destroy_confirmation_message(@issues)}, :class => 'icon-del', :disabled => !@can[:delete] %></li>
Eric Davis
Added plugin hooks to the context menu...
r2534
<%= call_hook(:view_issues_context_menu_end, {:issues => @issues, :can => @can, :back => @back }) %>
Jean-Philippe Lang
Added AJAX based context menu on the project issue list that provide shortcuts for editing, re-assigning, changing the status or the priority, moving or deleting an issue....
r859 </ul>