mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-22 16:31:33 +00:00
* perf: 修改主题色 * pref: debug toolbar 太费时间 先禁用 * perf: 修改颜色 * perf: 优化 interface * perf: 修改 avartar * perf: css color Co-authored-by: ibuler <ibuler@qq.com>
15 lines
406 B
Python
15 lines
406 B
Python
# coding: utf-8
|
|
from jumpserver.context_processor import default_interface
|
|
from django.conf import settings
|
|
|
|
|
|
def get_interface_setting_or_default():
|
|
if not settings.XPACK_ENABLED:
|
|
return default_interface
|
|
from xpack.plugins.interface.models import Interface
|
|
return Interface.get_interface_setting()
|
|
|
|
|
|
def get_login_title():
|
|
return get_interface_setting_or_default()['login_title']
|