##// END OF EJS Templates
Added domain image for linux.org.ru, added ability to make images for third-level domains when it is an org.ru, com.ua, co.uk etc domain
Added domain image for linux.org.ru, added ability to make images for third-level domains when it is an org.ru, com.ua, co.uk etc domain

File last commit:

r918:06775760 default
r1724:70ff8482 default
Show More
banned.py
17 lines | 492 B | text/x-python | PythonLexer
from django.shortcuts import get_object_or_404, render
from boards import utils
from boards.models import Ban
from boards.views.base import BaseBoardView
class BannedView(BaseBoardView):
def get(self, request):
"""Show the page that notifies that user is banned"""
params = dict()
ban = get_object_or_404(Ban, ip=utils.get_client_ip(request))
params['ban_reason'] = ban.reason
return render(request, 'boards/staticpages/banned.html', params)