Allow config to set favicon and header image
it already could set "main" image, shown in home and login pages
This commit is contained in:
parent
add4337d11
commit
b2bda5e31d
|
@ -5,10 +5,12 @@
|
||||||
<%def name="global_title()">${"[STAGE] " if not request.rattail_config.production() else ''}${self.app_title()}</%def>
|
<%def name="global_title()">${"[STAGE] " if not request.rattail_config.production() else ''}${self.app_title()}</%def>
|
||||||
|
|
||||||
<%def name="favicon()">
|
<%def name="favicon()">
|
||||||
<link rel="icon" type="image/x-icon" href="${request.static_url('tailbone:static/img/rattail.ico')}" />
|
<link rel="icon" type="image/x-icon" href="${request.rattail_config.get('tailbone', 'favicon_url', default=request.static_url('tailbone:static/img/rattail.ico'))}" />
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="header_logo()"></%def>
|
<%def name="header_logo()">
|
||||||
|
${h.image(request.rattail_config.get('tailbone', 'header_image_url', default=request.static_url('tailbone:static/img/rattail.ico')), "Header Logo", style="height: 49px;")}
|
||||||
|
</%def>
|
||||||
|
|
||||||
<%def name="footer()">
|
<%def name="footer()">
|
||||||
<p class="has-text-centered">
|
<p class="has-text-centered">
|
||||||
|
|
Loading…
Reference in a new issue