Source code for abilian.web.nav

"""Navigation elements.

Abilian define theses categories:   `section`:     Used for navigation
elements relevant to site section   `user`:     User for element that
should appear in user menu
"""
import typing
from typing import Any, Dict, Optional, Tuple, Union

from flask import g
from flask_babel.speaklater import LazyString
from jinja2 import Markup, Template

from abilian.web.action import Endpoint

from .action import ACTIVE, ENABLED, Action, Glyphicon, getset

if typing.TYPE_CHECKING:
    from abilian.web.action import Status