cleanup static
This commit is contained in:
parent
83d57b6197
commit
c544084c8e
29 changed files with 22 additions and 94 deletions
|
|
@ -159,7 +159,7 @@ class List(models.Model):
|
|||
source = self.icon.path
|
||||
max_size = min(self.icon.width, self.icon.height)
|
||||
else:
|
||||
source = os.path.join(settings.STATIC_ROOT, 'png/list256.png')
|
||||
source = os.path.join(settings.STATIC_ROOT, 'jpg/list256.jpg')
|
||||
max_size = 256
|
||||
if size < max_size:
|
||||
extract.resize_image(source, path, size=size)
|
||||
|
|
|
|||
|
|
@ -516,5 +516,5 @@ def icon(request, id, size=16):
|
|||
list = qs[0]
|
||||
icon = list.get_icon(int(size))
|
||||
else:
|
||||
icon = os.path.join(settings.STATIC_ROOT, 'jpg/list.jpg')
|
||||
icon = os.path.join(settings.STATIC_ROOT, 'jpg/list256.jpg')
|
||||
return HttpFileResponse(icon, content_type='image/jpeg')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue