##// END OF EJS Templates
Added tree mode for the thread
Added tree mode for the thread

File last commit:

r1180:e46298a6 default
r1180:e46298a6 default
Show More
gallery.py
24 lines | 530 B | text/x-python | PythonLexer
from boards.views.thread import ThreadView
TEMPLATE_GALLERY = 'boards/thread_gallery.html'
CONTEXT_POSTS = 'posts'
CONTEXT_OP = 'opening_post'
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)
params[CONTEXT_OP] = thread.get_opening_post()
return params
def get_mode(self):
return 'gallery'