##// END OF EJS Templates
Optimize cache key building
Optimize cache key building

File last commit:

r1185:ef257c39 default
r2013:240e0e67 default
Show More
gallery.py
22 lines | 447 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
neko259
Added tree mode for the thread
r1180
def get_mode(self):
return 'gallery'