Mercurial > public > sg101
comparison gpp/forums/views.py @ 120:f8f4514b806a
Added a 24-hour time preference flag in the user profile. Added forum template tags for showing forum dates/times adjusted for the user's time zone.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 25 Oct 2009 21:55:28 +0000 |
parents | a3633f39f3ce |
children | b28d30848c57 |
comparison
equal
deleted
inserted
replaced
119:b8f1dcc9fae4 | 120:f8f4514b806a |
---|---|
216 _bump_post_count(request.user) | 216 _bump_post_count(request.user) |
217 _update_last_visit(request.user, form.topic) | 217 _update_last_visit(request.user, form.topic) |
218 return render_to_response('forums/display_post.html', { | 218 return render_to_response('forums/display_post.html', { |
219 'post': post, | 219 'post': post, |
220 'can_moderate': _can_moderate(form.topic.forum, request.user), | 220 'can_moderate': _can_moderate(form.topic.forum, request.user), |
221 'can_reply': True, | |
221 }, | 222 }, |
222 context_instance=RequestContext(request)) | 223 context_instance=RequestContext(request)) |
223 | 224 |
224 return HttpResponseBadRequest("Invalid post."); | 225 return HttpResponseBadRequest("Invalid post."); |
225 | 226 |