# HG changeset patch # User Brian Neal # Date 1240179694 0 # Node ID db40c27545806c0eaf5f37c3fb10224081b13a37 # Parent 81e2449a59325cc57d67fdd5d0c58518488aad22 Added logos to the downloads and weblinks navigation templates. diff -r 81e2449a5932 -r db40c2754580 gpp/downloads/templatetags/downloads_tags.py --- a/gpp/downloads/templatetags/downloads_tags.py Sun Apr 19 21:58:47 2009 +0000 +++ b/gpp/downloads/templatetags/downloads_tags.py Sun Apr 19 22:21:34 2009 +0000 @@ -9,9 +9,12 @@ register = template.Library() -@register.inclusion_tag('downloads/navigation.html') -def downloads_navigation(): - return {'search_form': SearchForm()} +@register.inclusion_tag('downloads/navigation.html', takes_context=True) +def downloads_navigation(context): + return { + 'search_form': SearchForm(), + 'MEDIA_URL': context['MEDIA_URL'], + } @register.inclusion_tag('downloads/latest_tag.html') def latest_downloads(): diff -r 81e2449a5932 -r db40c2754580 gpp/templates/downloads/navigation.html --- a/gpp/templates/downloads/navigation.html Sun Apr 19 21:58:47 2009 +0000 +++ b/gpp/templates/downloads/navigation.html Sun Apr 19 22:21:34 2009 +0000 @@ -1,3 +1,6 @@ + diff -r 81e2449a5932 -r db40c2754580 gpp/templates/weblinks/navigation.html --- a/gpp/templates/weblinks/navigation.html Sun Apr 19 21:58:47 2009 +0000 +++ b/gpp/templates/weblinks/navigation.html Sun Apr 19 22:21:34 2009 +0000 @@ -1,3 +1,6 @@ +