basic lightbox support

This commit is contained in:
Sam Saffron
2013-02-19 17:57:14 +11:00
parent 14c0b96d55
commit d9531d94d5
15 changed files with 191 additions and 44 deletions

View File

@ -14,12 +14,10 @@ class Post < ActiveRecord::Base
FLAG_THRESHOLD_REACHED_AGAIN = 2
end
versioned
rate_limit
acts_as_paranoid
after_recover :update_flagged_posts_count
after_destroy :update_flagged_posts_count

View File

@ -107,7 +107,7 @@ footer:after{ content: '#{error}' }"
@lock.synchronize do
style = self.where(key: key).first
style.ensure_stylesheet_on_disk!
style.ensure_stylesheet_on_disk! if style
@cache[key] = style
end
end

View File

@ -81,7 +81,7 @@ class SiteSetting < ActiveRecord::Base
setting(:max_flags_per_day, 20)
setting(:max_edits_per_day, 30)
setting(:max_favorites_per_day, 20)
setting(:auto_link_images_wider_than, 50)
setting(:email_time_window_mins, 5)