cleanup static

This commit is contained in:
j 2011-10-28 00:15:37 +02:00
commit c544084c8e
29 changed files with 22 additions and 94 deletions

View file

@ -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)

View file

@ -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')