Skip to content

Commit

Permalink
fixes #5 and #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Garrett Martin committed Aug 6, 2014
1 parent e11ccaa commit c8b9a05
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/views/pages/profile.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@
.word-stats
= current_user.username
, you have written
%span.count= @post_today ? @post_today.word_count : 0
words today.
%span.count= @post_today ? pluralize(@post_today.word_count, "word") : pluralize(0, "word")
today.
.point-stats
You have
%span.points= @points
points.
%span.points= pluralize(@points, "point")
.streak-stats
Your current streak is
%span.days= @current_streak
day(s).
%span.days= pluralize(@current_streak, "day")

0 comments on commit c8b9a05

Please sign in to comment.