Allow config to define home page image URL
This commit is contained in:
parent
6156a80db0
commit
a3d0966139
2 changed files with 9 additions and 6 deletions
|
@ -1,8 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# -*- coding: utf-8; -*-
|
||||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2016 Lance Edgar
|
||||
# Copyright © 2010-2017 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -60,7 +60,10 @@ class CommonView(View):
|
|||
"""
|
||||
Home page view.
|
||||
"""
|
||||
return {}
|
||||
image_url = self.rattail_config.get(
|
||||
'tailbone', 'main_image_url',
|
||||
default=self.request.static_url('tailbone:static/img/home_logo.png'))
|
||||
return {'image_url': image_url}
|
||||
|
||||
def mobile_home(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue