fixes forum link style

This commit is contained in:
albert
2011-10-17 00:19:23 -04:00
parent eee3351c0f
commit 509c619a04
2 changed files with 5 additions and 1 deletions

View File

@@ -27,4 +27,8 @@ a.active {
a.login {
font-weight: bold;
color: #e00;
}
a.forum-updated {
font-style: italic;
}

View File

@@ -313,7 +313,7 @@ class User < ActiveRecord::Base
module ForumMethods
def has_forum_been_updated?
return false unless is_privileged?
newest_topic = ForumPost.first(:order => "updated_at desc", :select => "updated_at")
newest_topic = ForumPost.order("updated_at desc").first
return false if newest_topic.nil?
return true if last_forum_read_at.nil?
return newest_topic.updated_at > last_forum_read_at