header logo
This commit is contained in:
parent
ae4652529a
commit
4402ff9f54
6 changed files with 52 additions and 4 deletions
|
@ -280,6 +280,7 @@ TEMPLATES = [
|
|||
'django.template.context_processors.request',
|
||||
'django.contrib.auth.context_processors.auth',
|
||||
'django.contrib.messages.context_processors.messages',
|
||||
'c3nav.site.context_processors.header_logo',
|
||||
],
|
||||
'loaders': template_loaders
|
||||
},
|
||||
|
@ -291,15 +292,16 @@ STATICFILES_FINDERS = (
|
|||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
||||
'compressor.finders.CompressorFinder',
|
||||
'c3nav.site.finders.HeaderLogoFinder',
|
||||
)
|
||||
|
||||
BOOTSTRAP3 = {
|
||||
'success_css_class': '',
|
||||
}
|
||||
|
||||
STATICFILES_DIRS = (
|
||||
STATICFILES_DIRS = [
|
||||
os.path.join(BASE_DIR, 'c3nav/static'),
|
||||
)
|
||||
]
|
||||
|
||||
COMPRESS_PRECOMPILERS = (
|
||||
('text/x-scss', 'django_libsass.SassCompiler'),
|
||||
|
@ -312,6 +314,8 @@ COMPRESS_CSS_FILTERS = (
|
|||
'compressor.filters.cssmin.CSSCompressorFilter',
|
||||
)
|
||||
|
||||
HEADER_LOGO = config.get('c3nav', 'header_logo', fallback=None)
|
||||
HEADER_LOGO_NAME = ('logo/'+os.path.basename(HEADER_LOGO)) if HEADER_LOGO else None
|
||||
PRIMARY_COLOR = config.get('c3nav', 'primary_color', fallback='')
|
||||
HEADER_BACKGROUND_COLOR = config.get('c3nav', 'header_background_color', fallback='')
|
||||
HEADER_TEXT_COLOR = config.get('c3nav', 'header_text_color', fallback='')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue