From 5495e6f3424f44faa16b4d03dfe1e76a30e50469 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 18 Nov 2016 12:42:20 +0000 Subject: Introduce a setting to change the display format of timespans to h:mm (#23996). Patch by Jens Kraemer. git-svn-id: http://svn.redmine.org/redmine/trunk@15965 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/my/blocks/_timelog.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views/my/blocks/_timelog.html.erb') diff --git a/app/views/my/blocks/_timelog.html.erb b/app/views/my/blocks/_timelog.html.erb index 566831132..5b8820c19 100644 --- a/app/views/my/blocks/_timelog.html.erb +++ b/app/views/my/blocks/_timelog.html.erb @@ -46,7 +46,7 @@ entries_by_day = entries.group_by(&:spent_on) <%= day == User.current.today ? l(:label_today).titleize : format_date(day) %> - <%= html_hours("%.2f" % entries_by_day[day].sum(&:hours).to_f) %> + <%= html_hours(l_hours_short(entries_by_day[day].sum(&:hours))) %> <% entries_by_day[day].each do |entry| -%> @@ -56,7 +56,7 @@ entries_by_day = entries.group_by(&:spent_on) <%= entry.project %> <%= h(' - ') + link_to_issue(entry.issue, :truncate => 50) if entry.issue %> <%= entry.comments %> - <%= html_hours("%.2f" % entry.hours) %> + <%= html_hours(l_hours_short(entry.hours)) %> <% end -%> <% end -%> -- cgit v1.2.3