new flash thumbnails
This commit is contained in:
@@ -135,7 +135,11 @@ class Post < ActiveRecord::Base
|
|||||||
|
|
||||||
def medium_file_url
|
def medium_file_url
|
||||||
if has_medium?
|
if has_medium?
|
||||||
"/data/medium/#{file_path_prefix}#{md5}.jpg"
|
if is_flash?
|
||||||
|
"/images/480x150-flash.png"
|
||||||
|
else
|
||||||
|
"/data/medium/#{file_path_prefix}#{md5}.jpg"
|
||||||
|
end
|
||||||
else
|
else
|
||||||
file_url
|
file_url
|
||||||
end
|
end
|
||||||
@@ -150,6 +154,10 @@ class Post < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def preview_file_url
|
def preview_file_url
|
||||||
|
if is_flash?
|
||||||
|
return "/images/150x150-flash.png"
|
||||||
|
end
|
||||||
|
|
||||||
if Danbooru.config.ssd_path
|
if Danbooru.config.ssd_path
|
||||||
"/ssd/data/preview/#{file_path_prefix}#{md5}.jpg"
|
"/ssd/data/preview/#{file_path_prefix}#{md5}.jpg"
|
||||||
else
|
else
|
||||||
|
|||||||
BIN
public/images/150x150-flash.png
Executable file
BIN
public/images/150x150-flash.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
BIN
public/images/480x150-flash.png
Executable file
BIN
public/images/480x150-flash.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
Reference in New Issue
Block a user