From 509c619a04d2464b0b5eaf29e11f96a856f20669 Mon Sep 17 00:00:00 2001 From: albert Date: Mon, 17 Oct 2011 00:19:23 -0400 Subject: [PATCH] fixes forum link style --- app/assets/stylesheets/common/030_links.css.scss | 4 ++++ app/models/user.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/common/030_links.css.scss b/app/assets/stylesheets/common/030_links.css.scss index 059e61285..ec1322e72 100644 --- a/app/assets/stylesheets/common/030_links.css.scss +++ b/app/assets/stylesheets/common/030_links.css.scss @@ -27,4 +27,8 @@ a.active { a.login { font-weight: bold; color: #e00; +} + +a.forum-updated { + font-style: italic; } \ No newline at end of file diff --git a/app/models/user.rb b/app/models/user.rb index 41300c084..c07b25279 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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