diff --git a/boards/abstracts/tripcode.py b/boards/abstracts/tripcode.py --- a/boards/abstracts/tripcode.py +++ b/boards/abstracts/tripcode.py @@ -24,7 +24,3 @@ class Tripcode: def get_full_text(self): return self.tripcode - def get_view(self): - return '{text}'\ - .format(title=self.get_full_text(), color=self.get_color(), - text=self.get_short_text()) 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 @@ -30,14 +30,14 @@ class AbstractViewer: def get_view(self): return '
'\ '{}'\ - '
{}, {}
'\ - '
'.format(self.get_format_view(), + '
{}, {}
'\ + ''.format(self.get_format_view(), self.file.url, self.file_type, filesizeformat(self.file.size)) def get_format_view(self): return ''\ ''\ - ''.format(self.file.url,static(FILE_STUB_IMAGE)) + ''.format(self.file.url, static(FILE_STUB_IMAGE)) class VideoViewer(AbstractViewer): diff --git a/boards/models/image.py b/boards/models/image.py --- a/boards/models/image.py +++ b/boards/models/image.py @@ -99,7 +99,9 @@ class PostImage(models.Model, Viewable): ' data-width="{}"' \ ' data-height="{}" />' \ '' \ - '
{image_meta}
' \ + '
'\ + '{image_meta}'\ + '
' \ ''\ .format(CSS_CLASS_IMAGE, CSS_CLASS_THUMB, self.image.url_200x150,