Removed duplicate links from footer, and added theme changing links

This commit is contained in:
str4d
2012-12-15 21:57:32 +00:00
parent a9b34ce7ad
commit f7c84f3473
2 changed files with 19 additions and 14 deletions

View File

@@ -153,8 +153,15 @@ def utility_processor():
args['page'] = page
return url_for(request.endpoint, **args)
# Change the theme of the current page
def change_theme(theme):
args = request.view_args.copy()
args['theme'] = theme
return url_for(request.endpoint, **args)
return dict(i2pconv=convert_url_to_clearnet,
url_for_other_page=url_for_other_page)
url_for_other_page=url_for_other_page,
change_theme=change_theme)
################