mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-15 11:36:23 +01:00
Improve menu app
This commit is contained in:
18
allianceauth/menu/constants.py
Normal file
18
allianceauth/menu/constants.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""Global constants for the menu app."""
|
||||
|
||||
from django.db import models
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
DEFAULT_FOLDER_ICON_CLASSES = "fa-solid fa-folder" # TODO: Make this a setting?
|
||||
"""Default icon class for folders."""
|
||||
|
||||
DEFAULT_MENU_ITEM_ORDER = 9999
|
||||
"""Default order for any menu item."""
|
||||
|
||||
|
||||
class MenuItemType(models.TextChoices):
|
||||
"""The type of a menu item."""
|
||||
|
||||
APP = "app", _("app")
|
||||
FOLDER = "folder", _("folder")
|
||||
LINK = "link", _("link")
|
||||
Reference in New Issue
Block a user