from django.utils.translation import gettext_lazy as _ from evibes.settings.base import EVIBES_VERSION from evibes.settings.constance import CONSTANCE_CONFIG JAZZMIN_SETTINGS = { "site_title": f"{CONSTANCE_CONFIG.get('PROJECT_NAME')[0]} Admin", # type: ignore "site_header": str(CONSTANCE_CONFIG.get("PROJECT_NAME")[0]), # type: ignore "site_brand": str(CONSTANCE_CONFIG.get("COMPANY_NAME")[0]), # type: ignore "site_logo": "logo.png", "login_logo": "logo.png", "login_logo_dark": "logo.png", "site_logo_classes": "", "site_icon": "favicon.ico", "welcome_sign": "Whoa! Only admins allowed here!", "copyright": f"eVibes {EVIBES_VERSION} by Wiseless", "search_model": None, "user_avatar": "avatar", "topmenu_links": [ {"name": "Home", "url": "admin:index"}, {"name": _("Storefront"), "url": f"https://{CONSTANCE_CONFIG.get('BASE_DOMAIN')[0]}", "new_window": True}, {"name": _("Support"), "url": "https://t.me/fureunoir", "new_window": True}, {"name": "GitLab", "url": "https://gitlab.com/wiseless/evibes", "new_window": True}, {"model": "vibes_auth.User", "permissions": ["vibes_auth.view_user"]}, {"model": "core.Product", "permissions": ["core.view_product"]}, {"model": "core.Category", "permissions": ["core.view_category"]}, {"model": "core.Brand", "permissions": ["core.view_brand"]}, ], "usermenu_links": [], "show_sidebar": True, "navigation_expanded": True, "hide_apps": ["django_celery_results", ""], "hide_models": [], "order_with_respect_to": ["vibes_auth", "core", "payments", "blog"], "icons": { "auth": "fas fa-users-cog", "auth.user": "fas fa-user", "auth.Group": "fas fa-users", }, "default_icon_parents": "fas fa-chevron-circle-right", "default_icon_children": "fas fa-circle", "related_modal_active": False, "use_google_fonts_cdn": True, "show_ui_builder": False, "changeform_format": "horizontal_tabs", "language_chooser": True, }