mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Custom splash screen (#3499)
* Adds support for custom splash screen * Add option to config template file
This commit is contained in:
		@@ -195,7 +195,7 @@ def inventree_title(*args, **kwargs):
 | 
			
		||||
 | 
			
		||||
@register.simple_tag()
 | 
			
		||||
def inventree_logo(**kwargs):
 | 
			
		||||
    """Return the InvenTree logo, *or* a custom logo if the user has uploaded one.
 | 
			
		||||
    """Return the InvenTree logo, *or* a custom logo if the user has provided one.
 | 
			
		||||
 | 
			
		||||
    Returns a path to an image file, which can be rendered in the web interface
 | 
			
		||||
    """
 | 
			
		||||
@@ -203,6 +203,13 @@ def inventree_logo(**kwargs):
 | 
			
		||||
    return InvenTree.helpers.getLogoImage(**kwargs)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@register.simple_tag()
 | 
			
		||||
def inventree_splash(**kwargs):
 | 
			
		||||
    """Return the URL for the InvenTree splash screen, *or* a custom screen if the user has provided one."""
 | 
			
		||||
 | 
			
		||||
    return InvenTree.helpers.getSplashScren(**kwargs)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@register.simple_tag()
 | 
			
		||||
def inventree_base_url(*args, **kwargs):
 | 
			
		||||
    """Return the INVENTREE_BASE_URL setting."""
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user