~cjohnston/ubuntu-website/header-color-fix-django

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Michael Hall
  • Date: 2010-07-20 18:58:59 UTC
  • Revision ID: mhall@mhall-laptop-20100720185859-9sefsthd5d7r27z0
Added popup check, don't show header nav bars or footer when showing in a popup window

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    """
10
10
    add the ubuntu-website media path to template context processor. 
11
11
    """
12
 
    return {'ubuntu_website_media': MEDIA_URL}
 
 
b'\\ No newline at end of file'
 
12
    return {'ubuntu_website_media': MEDIA_URL}
 
13
 
 
14
def popup_check(request):
 
15
    return {'is_popup': request.REQUEST.has_key('_popup')}
 
16