fixes forum link style
This commit is contained in:
@@ -28,3 +28,7 @@ a.login {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #e00;
|
color: #e00;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.forum-updated {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
@@ -313,7 +313,7 @@ class User < ActiveRecord::Base
|
|||||||
module ForumMethods
|
module ForumMethods
|
||||||
def has_forum_been_updated?
|
def has_forum_been_updated?
|
||||||
return false unless is_privileged?
|
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 false if newest_topic.nil?
|
||||||
return true if last_forum_read_at.nil?
|
return true if last_forum_read_at.nil?
|
||||||
return newest_topic.updated_at > last_forum_read_at
|
return newest_topic.updated_at > last_forum_read_at
|
||||||
|
|||||||
Reference in New Issue
Block a user