add favicon support
This commit is contained in:
parent
2587f5f8ba
commit
a006d8a9ec
6 changed files with 49 additions and 18 deletions
|
@ -1,7 +1,12 @@
|
|||
from django.conf import settings
|
||||
import os
|
||||
|
||||
from c3nav.site.finders import logo_paths
|
||||
|
||||
logos_result = {
|
||||
prefix: os.path.join(prefix, os.path.basename(path)) if path else None
|
||||
for prefix, path in logo_paths.items()
|
||||
}
|
||||
|
||||
|
||||
def header_logo(request):
|
||||
return {
|
||||
'header_logo': settings.HEADER_LOGO_NAME
|
||||
}
|
||||
def logos(request):
|
||||
return logos_result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue