Source code for plinth.menu

# SPDX-License-Identifier: AGPL-3.0-or-later

from django.urls import reverse, reverse_lazy

from plinth import app





main_menu = None


def init():
    """Create main menu and other essential menus."""
    global main_menu
    main_menu = Menu('menu-index', url_name='index')
    Menu('menu-apps', icon='fa-download', url_name='apps',
         parent_url_name='index')
    Menu('menu-system', icon='fa-cog', url_name='system',
         parent_url_name='index')