##// END OF EJS Templates
Refactored post and thread models
Refactored post and thread models

File last commit:

r951:225d57cf default
r1091:4006b8dc default
Show More
gallery.py
19 lines | 397 B | text/x-python | PythonLexer
neko259
Split thread view into separate views for each mode
r951 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