Skip to content

Commit

Permalink
Fixed issue with 'days_left' formatting. Use integer instead of ratio…
Browse files Browse the repository at this point in the history
…nal.
  • Loading branch information
steveyken committed Aug 11, 2012
1 parent 1479d7c commit 90d23a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/opportunities/_sidebar_show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
%tt #{t :close_date}:
- if @opportunity.closes_on && @opportunity.stage !~ /lost|won/
%li
- days_left = @opportunity.closes_on - Date.today
- days_left = (@opportunity.closes_on - Date.today).to_i
- if days_left >= 0
%dt= days_left
%tt #{t :days_left}:
Expand Down

0 comments on commit 90d23a6

Please sign in to comment.