def status(title, style, icon=None):
    """
    A status line, with possible icon.
    :param title: Status title
    :param style: Status style (primary, danger etc)
    :param icon: (optional) An icon next to the status (font-awesome)

    status("Loading", "refresh fa-spin")
    status("Complete", "check")
    """

    return {
        "style": style,
        "title": title,
        "class": "status",
        "icon": icon
    }