diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-05-03 23:29:34 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-05-03 23:29:34 -0400 |
commit | a37526e30bcad8aa6ab6b217dcf9ed760ecd4b40 (patch) | |
tree | b75aebbbff3a8ef2dd83c46f0ec5b49351a28744 /forum/views/meta.py | |
parent | a830d2c9443d1dfd977682fb7e9dd1f3554f9094 (diff) | |
download | askbot-a37526e30bcad8aa6ab6b217dcf9ed760ecd4b40.tar.gz askbot-a37526e30bcad8aa6ab6b217dcf9ed760ecd4b40.tar.bz2 askbot-a37526e30bcad8aa6ab6b217dcf9ed760ecd4b40.zip |
added beginning of Serbian translation by Aleksandar, Pekkas German, fixed allowing html tags in the question title
Diffstat (limited to 'forum/views/meta.py')
-rwxr-xr-x | forum/views/meta.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/forum/views/meta.py b/forum/views/meta.py index 40f3d394..af5fe6df 100755 --- a/forum/views/meta.py +++ b/forum/views/meta.py @@ -14,6 +14,7 @@ def about(request): def faq(request): data = { + 'view_name':'faq', 'gravatar_faq_url': reverse('faq') + '#gravatar', #'send_email_key_url': reverse('send_email_key'), 'ask_question_url': reverse('ask'), @@ -21,7 +22,7 @@ def faq(request): return render_to_response('faq.html', data, context_instance=RequestContext(request)) def feedback(request): - data = {} + data = {'view_name':'feedback'} form = None if request.method == "POST": form = FeedbackForm(request.POST) @@ -43,7 +44,7 @@ def feedback(request): feedback.CANCEL_MESSAGE=_('We look forward to hearing your feedback! Please, give it next time :)') def privacy(request): - return render_to_response('privacy.html', context_instance=RequestContext(request)) + return render_to_response('privacy.html', {'view_name':'privacy'}, context_instance=RequestContext(request)) def logout(request):#refactor/change behavior? #currently you click logout and you get @@ -54,6 +55,7 @@ def logout(request):#refactor/change behavior? #why not just show a message: you are logged out of askbot, but #if you really want to log out -> go to your openid provider return render_to_response('logout.html', { + 'view_name':'logout', 'next' : get_next_url(request), }, context_instance=RequestContext(request)) @@ -66,6 +68,7 @@ def badges(request):#user status/reputation system return render_to_response('badges.html', { 'badges' : badges, + 'view_name': 'badges', 'mybadges' : my_badges, 'feedback_faq_url' : reverse('feedback'), }, context_instance=RequestContext(request)) @@ -85,6 +88,7 @@ def badge(request, id): ).distinct('id') return render_to_response('badge.html', { + 'view_name': badge, 'awards' : awards, 'badge' : badge, }, context_instance=RequestContext(request)) |