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
@@ -25,12 +25,16 @@ class AbstractViewer:
return True
def get_view(self):
- return '
'.format(self.file.url, static(FILE_STUB_IMAGE),
- self.file_type, filesizeformat(self.file.size))
+ ''.format(self.file.url,static(FILE_STUB_IMAGE))
class WebmViewer(AbstractViewer):
@@ -38,10 +42,9 @@ class WebmViewer(AbstractViewer):
def supports(file_type):
return file_type == FILE_TYPE_WEBM
- def get_view(self):
- return ''\
- ''\
- '
'.format(self.file.url)
+ def get_format_view(self):
+ return ''\
+ .format(self.file.url)
class AudioViewer(AbstractViewer):
@@ -49,10 +52,8 @@ class AudioViewer(AbstractViewer):
def supports(file_type):
return file_type in FILE_TYPES_AUDIO
- def get_view(self):
- return ''.format(self.file.url)
+ def get_format_view(self):
+ return ''.format(self.file.url)
class SvgViewer(AbstractViewer):
@@ -60,9 +61,7 @@ class SvgViewer(AbstractViewer):
def supports(file_type):
return file_type == FILE_TYPE_SVG
- def get_view(self):
- return ''.format(self.file.url, self.file.url)
+ def get_format_view(self):
+ return ''\
+ '
'\
+ ''.format(self.file.url, self.file.url)