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
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -5,10 +5,12 @@ | |||
| <%def name="global_title()">${"[STAGE] " if not request.rattail_config.production() else ''}${self.app_title()}</%def> | ||||
| 
 | ||||
| <%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 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()"> | ||||
|   <p class="has-text-centered"> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar