Move the navbar icons to a dedicated subdirectory
|
@ -16,7 +16,7 @@ class Element(models.Model):
|
||||||
new_window = models.BooleanField(default=False)
|
new_window = models.BooleanField(default=False)
|
||||||
add_locale = models.BooleanField(default=False)
|
add_locale = models.BooleanField(default=False)
|
||||||
icon = models.FilePathField(
|
icon = models.FilePathField(
|
||||||
path=os.path.join(settings.BASE_DIR, 'navbar/static/icons'),
|
path=os.path.join(settings.BASE_DIR, 'navbar/static/navbar/icons'),
|
||||||
match=".png",
|
match=".png",
|
||||||
null=True,
|
null=True,
|
||||||
blank=True
|
blank=True
|
||||||
|
@ -24,7 +24,7 @@ class Element(models.Model):
|
||||||
weight = models.PositiveSmallIntegerField()
|
weight = models.PositiveSmallIntegerField()
|
||||||
|
|
||||||
def icon_path(self):
|
def icon_path(self):
|
||||||
return os.path.join('icons', os.path.basename(self.icon))
|
return os.path.join('navbar/icons', os.path.basename(self.icon))
|
||||||
|
|
||||||
def children(self):
|
def children(self):
|
||||||
return sorted(
|
return sorted(
|
||||||
|
|
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 268 B |
Before Width: | Height: | Size: 464 B After Width: | Height: | Size: 464 B |
Before Width: | Height: | Size: 382 B After Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 350 B After Width: | Height: | Size: 350 B |
Before Width: | Height: | Size: 401 B After Width: | Height: | Size: 401 B |
Before Width: | Height: | Size: 187 B After Width: | Height: | Size: 187 B |
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 319 B |
Before Width: | Height: | Size: 203 B After Width: | Height: | Size: 203 B |
Before Width: | Height: | Size: 436 B After Width: | Height: | Size: 436 B |
Before Width: | Height: | Size: 212 B After Width: | Height: | Size: 212 B |
Before Width: | Height: | Size: 235 B After Width: | Height: | Size: 235 B |
Before Width: | Height: | Size: 673 B After Width: | Height: | Size: 673 B |
Before Width: | Height: | Size: 666 B After Width: | Height: | Size: 666 B |
Before Width: | Height: | Size: 436 B After Width: | Height: | Size: 436 B |
Before Width: | Height: | Size: 552 B After Width: | Height: | Size: 552 B |
Before Width: | Height: | Size: 389 B After Width: | Height: | Size: 389 B |
Before Width: | Height: | Size: 637 B After Width: | Height: | Size: 637 B |
Before Width: | Height: | Size: 630 B After Width: | Height: | Size: 630 B |
Before Width: | Height: | Size: 506 B After Width: | Height: | Size: 506 B |
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 319 B |
Before Width: | Height: | Size: 389 B After Width: | Height: | Size: 389 B |
Before Width: | Height: | Size: 951 B After Width: | Height: | Size: 951 B |