Skip to content

Commit

Permalink
Fix the read status
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Aug 26, 2011
1 parent 5ddb493 commit 35e98b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/helpers/node_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def read_it(content)
nb_comments = content_tag(:span, pluralize(node.try(:comments_count), "commentaire"), :class => "nb_comments")
if current_account
status = node.read_status(current_account)
status = :new_comments if Integer === status
visit = case status
when :not_read then ", non visité"
when Integer then ", #{pluralize status, "nouveau", "nouveaux"} !"
Expand Down

0 comments on commit 35e98b0

Please sign in to comment.