##// END OF EJS Templates
Code cleanup....
Jean-Philippe Lang -
r10840:a4f989a5e098
parent child
Show More
@@ -1,11 +1,10
1 <h2><%= @copy ? l(:button_copy) : l(:label_bulk_edit_selected_issues) %></h2>
1 <h2><%= @copy ? l(:button_copy) : l(:label_bulk_edit_selected_issues) %></h2>
2
2
3 <ul><%= @issues.collect {|i|
3 <ul>
4 content_tag('li',
4 <% @issues.each do |issue| %>
5 link_to(h("#{i.tracker} ##{i.id}"),
5 <%= content_tag 'li', link_to_issue(issue) %>
6 { :action => 'show', :id => i }
6 <% end %>
7 ) + h(": #{i.subject}"))
7 </ul>
8 }.join("\n").html_safe %></ul>
9
8
10 <%= form_tag({:action => 'bulk_update'}, :id => 'bulk_edit_form') do %>
9 <%= form_tag({:action => 'bulk_update'}, :id => 'bulk_edit_form') do %>
11 <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join("\n").html_safe %>
10 <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join("\n").html_safe %>
@@ -1,10 +1,10
1 <h2><%= l(:label_bulk_edit_selected_time_entries) %></h2>
1 <h2><%= l(:label_bulk_edit_selected_time_entries) %></h2>
2
2
3 <ul>
3 <ul>
4 <%= @time_entries.collect {|i| content_tag('li',
4 <% @time_entries.each do |entry| %>
5 link_to(h("#{i.spent_on.strftime("%Y-%m-%d")} - #{i.project}: #{l(:label_f_hour_plural, :value => i.hours)}"),
5 <%= content_tag 'li',
6 { :action => 'edit', :id => i })
6 link_to("#{format_date(entry.spent_on)} - #{entry.project}: #{l(:label_f_hour_plural, :value => entry.hours)}", edit_time_entry_path(entry)) %>
7 )}.join("\n").html_safe %>
7 <% end %>
8 </ul>
8 </ul>
9
9
10 <%= form_tag(:action => 'bulk_update') do %>
10 <%= form_tag(:action => 'bulk_update') do %>
General Comments 0
You need to be logged in to leave comments. Login now