diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-11-18 12:42:20 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-11-18 12:42:20 +0000 |
commit | 5495e6f3424f44faa16b4d03dfe1e76a30e50469 (patch) | |
tree | f37543a819979725a0a916af660e49095ff303e3 /app/views/my/blocks/_timelog.html.erb | |
parent | 9c3e3a4276612f60552379518ab8c9a11319e73b (diff) | |
download | redmine-5495e6f3424f44faa16b4d03dfe1e76a30e50469.tar.gz redmine-5495e6f3424f44faa16b4d03dfe1e76a30e50469.zip |
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
Diffstat (limited to 'app/views/my/blocks/_timelog.html.erb')
-rw-r--r-- | app/views/my/blocks/_timelog.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
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) <tr class="odd"> <td><strong><%= day == User.current.today ? l(:label_today).titleize : format_date(day) %></strong></td> <td colspan="2"></td> - <td class="hours"><em><%= html_hours("%.2f" % entries_by_day[day].sum(&:hours).to_f) %></em></td> + <td class="hours"><em><%= html_hours(l_hours_short(entries_by_day[day].sum(&:hours))) %></em></td> </tr> <% entries_by_day[day].each do |entry| -%> <tr class="time-entry hascontextmenu"> @@ -56,7 +56,7 @@ entries_by_day = entries.group_by(&:spent_on) </td> <td class="subject"><%= entry.project %> <%= h(' - ') + link_to_issue(entry.issue, :truncate => 50) if entry.issue %></td> <td class="comments"><%= entry.comments %></td> - <td class="hours"><%= html_hours("%.2f" % entry.hours) %></td> + <td class="hours"><%= html_hours(l_hours_short(entry.hours)) %></td> </tr> <% end -%> <% end -%> |