##// END OF EJS Templates
Disable websocket by default. Use JS thread update when websockets are...
Disable websocket by default. Use JS thread update when websockets are disabled instead of throwing an error

File last commit:

r951:225d57cf default
r1147:24687cf5 default
Show More
gallery.py
19 lines | 397 B | text/x-python | PythonLexer
from boards.views.thread import ThreadView
TEMPLATE_GALLERY = 'boards/thread_gallery.html'
CONTEXT_POSTS = 'posts'
class GalleryThreadView(ThreadView):
def get_template(self):
return TEMPLATE_GALLERY
def get_data(self, thread):
params = dict()
params[CONTEXT_POSTS] = thread.get_replies_with_images(
view_fields_only=True)
return params