<%! import matsuba.templatetools as tt import extutil %> <%namespace file="common.html" import="*" /> <%inherit file="base.html" /> <%def name="bodyclass()">mainpage ${postform(board)}
% for thread in threads: <% op, res = thread[0], thread[1:] if thread.sticky: n = MAX_STICKY_REPLIES_SHOWN else: n = MAX_REPLIES_SHOWN replies = res[-n:] omitted = len(res) - len(replies) omitted_files = tt.filecount(res) - tt.filecount(replies) %> ${singlepost(op, threadpage)} % if omitted: ${extutil.make_plural(omitted, 'post')} % if omitted_files: and ${extutil.make_plural(omitted_files, 'file')} % endif omitted${(' (permasaged)' if thread.sage else '')}. Click Reply to view. % endif % for post in replies: ${singlepost(post, threadpage)} % endfor

% endfor
% if board.all_filetypes(): [] % endif
% if numpages: ${pager(page, numpages)} % endif