# HG changeset patch # User neko259 # Date 2017-12-16 11:47:02 # Node ID 5608c1c3d6bd224a8a6edce699204e163ee429ec # Parent d7fe81282d9391aa84134b4f7c2de245553a628c Removed redundant viewers code diff --git a/boards/models/attachment/viewers.py b/boards/models/attachment/viewers.py --- a/boards/models/attachment/viewers.py +++ b/boards/models/attachment/viewers.py @@ -8,6 +8,8 @@ from boards.abstracts.constants import T from boards.settings import SECTION_EXTERNAL from boards.utils import get_domain, cached_result, get_extension +URL_IMAGE_PATH = 'images/{}.png' + PROTOCOL_DELIMITER = ':' DOMAIN_DELIMITER = '.' @@ -50,7 +52,6 @@ URL_PROTOCOLS = { } CSS_CLASS_IMAGE = 'image' -CSS_CLASS_THUMB = 'thumb' ABSTRACT_VIEW = '
'\ '{}'\ @@ -66,7 +67,7 @@ ABSTRACT_FORMAT_VIEW = ''\ '' VIDEO_FORMAT_VIEW = '' AUDIO_FORMAT_VIEW = '' -IMAGE_FORMAT_VIEW = '' \ +IMAGE_FORMAT_VIEW = '' \ '