mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	feature(BE): add customization for admin.site.site_header (#10179) to
* feature: add customization for admin.site.site_header * fix: style issue --------- Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
		| @@ -39,10 +39,14 @@ from .api import ( | ||||
|     VersionTextView, | ||||
|     VersionView, | ||||
| ) | ||||
| from .config import get_setting | ||||
| from .magic_login import GetSimpleLoginView | ||||
| from .views import auth_request | ||||
|  | ||||
| admin.site.site_header = 'InvenTree Admin' | ||||
| # Set admin header from config or use default | ||||
| admin.site.site_header = get_setting( | ||||
|     'INVENTREE_SITE_HEADER', 'customize.site_header', 'InvenTree Admin' | ||||
| ) | ||||
|  | ||||
|  | ||||
| apipatterns = [ | ||||
|   | ||||
| @@ -217,6 +217,7 @@ ldap: | ||||
| # Customization options | ||||
| # Ref: https://docs.inventree.org/en/stable/start/config/#customization-options | ||||
| # customize: | ||||
| #   site_header: 'Custom Admin Panel'  # Django admin panel header text | ||||
| #   login_message: InvenTree demo instance - <a href='https://inventree.org/demo.html'> Click here for login details</a> | ||||
| #   navbar_message: <h6>InvenTree demo mode <a href='https://inventree.org/demo.html'><span class='fas fa-info-circle'></span></a></h6> | ||||
| #   hide_admin_link: true | ||||
|   | ||||
		Reference in New Issue
	
	Block a user