diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-22 10:57:01 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-22 10:57:01 +0000 |
commit | a4f989a5e098a4b48659c5f436c327eca0220219 (patch) | |
tree | 5aa4900ca541e764ef01b89bf4e1d108c2d5cf43 /app/views/timelog | |
parent | 6c15812d96165d884a47342b007449bcdaca63f5 (diff) | |
download | redmine-a4f989a5e098a4b48659c5f436c327eca0220219.tar.gz redmine-a4f989a5e098a4b48659c5f436c327eca0220219.zip |
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11070 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/timelog')
-rw-r--r-- | app/views/timelog/bulk_edit.html.erb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/timelog/bulk_edit.html.erb b/app/views/timelog/bulk_edit.html.erb index f1d4ed979..ac3511a77 100644 --- a/app/views/timelog/bulk_edit.html.erb +++ b/app/views/timelog/bulk_edit.html.erb @@ -1,10 +1,10 @@ <h2><%= l(:label_bulk_edit_selected_time_entries) %></h2> <ul> -<%= @time_entries.collect {|i| content_tag('li', - link_to(h("#{i.spent_on.strftime("%Y-%m-%d")} - #{i.project}: #{l(:label_f_hour_plural, :value => i.hours)}"), - { :action => 'edit', :id => i }) - )}.join("\n").html_safe %> +<% @time_entries.each do |entry| %> + <%= content_tag 'li', + link_to("#{format_date(entry.spent_on)} - #{entry.project}: #{l(:label_f_hour_plural, :value => entry.hours)}", edit_time_entry_path(entry)) %> +<% end %> </ul> <%= form_tag(:action => 'bulk_update') do %> |