summaryrefslogtreecommitdiffstats
path: root/app/views/my/blocks/_timelog.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/my/blocks/_timelog.html.erb')
-rw-r--r--app/views/my/blocks/_timelog.html.erb4
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 -%>