from django.conf import settings


def classification(request):
    """
    Adds classification context to views.
    """

    ctx = {
        "classification_text": getattr(settings, "CLASSIFICATION_TEXT", 'UNCLASSIFIED'),
        "classification_text_color": getattr(settings,"CLASSIFICATION_TEXT_COLOR", 'white'),
        "classification_background_color": getattr(settings,"CLASSIFICATION_BACKGROUND_COLOR", 'green'),
    }

    return ctx
