##// END OF EJS Templates
Small fixes to the websocket notifications. Make post creation atomic, not the entire view
Small fixes to the websocket notifications. Make post creation atomic, not the entire view

File last commit:

r872:752c0b44 default
r915:05c77e2a default
Show More
static.py
17 lines | 449 B | text/x-python | PythonLexer
neko259
Moved static page view to the class-based. Removed old methods from the view...
r565 from django.shortcuts import render
from boards.views.base import BaseBoardView
neko259
Implemented search over posts. Moved get_user and get_theme to utils module. Use context processors instead of creating context in the base view. Removed unused imports in some modules
r690
neko259
Moved static page view to the class-based. Removed old methods from the view...
r565 class StaticPageView(BaseBoardView):
neko259
Staticpage view fix
r577 def get(self, request, name):
neko259
Moved static page view to the class-based. Removed old methods from the view...
r565 """
Show a static page that needs only tags list and a CSS
"""
context = self.get_context_data(request=request)
neko259
Updates to support django 1.7
r872
# TODO Use dict here
return render(request, 'boards/staticpages/' + name + '.html',
context_instance=context)