fixes #633
This commit is contained in:
@@ -1,10 +0,0 @@
|
|||||||
$(function() {
|
|
||||||
if ($("#c-landings").length) {
|
|
||||||
$(".data").each(function(i, div) {
|
|
||||||
var $div = $(div);
|
|
||||||
var $image = $div.prev();
|
|
||||||
|
|
||||||
$div.width($image.width() - 10).height($image.height() - 10).offset({top: $image.position().top, left: $image.position().left});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
@@ -357,7 +357,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.order("updated_at desc").first
|
newest_topic = ForumTopic.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