2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Custom splash screen (#3499)

* Adds support for custom splash screen

* Add option to config template file
This commit is contained in:
Oliver
2022-08-09 09:42:53 +10:00
committed by GitHub
parent af0c6b957d
commit b0ad326daa
7 changed files with 41 additions and 11 deletions

View File

@ -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."""