add support for 1.5 pixel ratio

This commit is contained in:
Régis Hanol 2016-04-06 10:57:59 +02:00
parent 9a045c216c
commit 56c870cca2

View File

@ -82,7 +82,7 @@ module Discourse
@anonymous_top_menu_items ||= Discourse.anonymous_filters + [:category, :categories, :top] @anonymous_top_menu_items ||= Discourse.anonymous_filters + [:category, :categories, :top]
end end
PIXEL_RATIOS ||= [1, 2, 3] PIXEL_RATIOS ||= [1, 1.5, 2, 3]
def self.avatar_sizes def self.avatar_sizes
# TODO: should cache these when we get a notification system for site settings # TODO: should cache these when we get a notification system for site settings