Mercurial > public > sg101
annotate gpp/core/views.py @ 147:152d77265da6
Implement #38: add function to mark user as a spammer. Display only active members on member list. Display login form as table (not sure why wasn't doing this before).
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 13 Dec 2009 08:11:16 +0000 |
parents | 2d299909e074 |
children | ab7830b067b3 |
rev | line source |
---|---|
bgneal@127 | 1 """ |
bgneal@127 | 2 Views for the core application. These are mainly shared, common views |
bgneal@127 | 3 used by multiple applications. |
bgneal@127 | 4 """ |
bgneal@127 | 5 from django.shortcuts import render_to_response |
bgneal@127 | 6 from django.template import RequestContext |
bgneal@127 | 7 from django.contrib.auth.decorators import login_required |
bgneal@127 | 8 from django.views.decorators.http import require_GET |
bgneal@127 | 9 |
bgneal@127 | 10 @login_required |
bgneal@127 | 11 @require_GET |
bgneal@127 | 12 def markdown_help(request): |
bgneal@127 | 13 """ |
bgneal@127 | 14 This view provides the Markdown help cheat sheet. It is expected |
bgneal@127 | 15 to be called via AJAX. |
bgneal@127 | 16 """ |
bgneal@127 | 17 return render_to_response('core/markdown_help.html') |