Merge branch 'read-forum'

This commit is contained in:
r888888888
2014-03-14 18:39:49 -07:00
6 changed files with 84 additions and 11 deletions

View File

@@ -24,7 +24,7 @@
<span class="sticky">Sticky:</span>
<% end %>
<% if topic.updated_at > (CurrentUser.last_forum_read_at || Time.now) %>
<% unless topic.read_by?(CurrentUser.user, @read_forum_topic_ids) %>
<span class="new">NEW</span>
<% end %>