|
|
|
@ -103,7 +103,7 @@ class File: |
|
|
|
|
|
|
|
|
|
if self.ext == '.pdf': |
|
|
|
|
self.type = 'pdf' |
|
|
|
|
elif self.ext in ('.jpg', '.png', '.gif'): |
|
|
|
|
elif self.ext in ('.jpg', '.jpeg', '.png', '.gif'): |
|
|
|
|
self.type = 'image' |
|
|
|
|
else: |
|
|
|
|
self.type = 'other' |
|
|
|
@ -200,4 +200,4 @@ class File: |
|
|
|
|
return ''.format('media/fileicons/' + os.path.basename(self.icon)) + ' ' + \ |
|
|
|
|
'[{}](file://{})'.format(self.title, link_path) |
|
|
|
|
else: |
|
|
|
|
return '[{}](file://{})'.format(self.title, link_path) |
|
|
|
|
return '[{}](file://{})'.format(self.title, link_path) |
|
|
|
|