##// END OF EJS Templates
Merged in xdevelnet/neboard/xdevelnet/readmemarkdown-edited-online-with-bitbuc-1462787157183 (pull request #18)...
Merged in xdevelnet/neboard/xdevelnet/readmemarkdown-edited-online-with-bitbuc-1462787157183 (pull request #18) readme.markdown edited online with Bitbucket

File last commit:

r1185:ef257c39 default
r1536:332078ad merge decentral
Show More
gallery.py
22 lines | 447 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
def get_mode(self):
return 'gallery'