summaryrefslogtreecommitdiff
path: root/main/context_processors.py
blob: 96a45dcf3314fff5676d25f5382f89bbfb32f452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
def secure(request):
    return {'secure': request.is_secure()}

def branding(request):
    from django.conf import settings
    return {
        'BUGTRACKER_URL': settings.BUGTRACKER_URL,
        'MAILMAN_BASE_URL': settings.MAILMAN_BASE_URL,
        'PROJECTS_URL': settings.PROJECTS_URL,

        'BRANDING_APPNAME': settings.BRANDING_APPNAME,
        'BRANDING_DISTRONAME': settings.BRANDING_DISTRONAME,
        'BRANDING_SHORTNAME': settings.BRANDING_SHORTNAME,
        'BRANDING_WIKINAME': settings.BRANDING_WIKINAME,
        'BRANDING_EMAIL': settings.BRANDING_EMAIL,
        'BRANDING_OSEARCH_TAGS': settings.BRANDING_OSEARCH_TAGS,
    }

# vim: set ts=4 sw=4 et: