<%! import posixpath, cgi import matsuba.templatetools as tt import extutil %> <%namespace file="common.html" import="*" /> <%inherit file="base.html" /> <%def name="bodyclass()">catalogpage <%def name="pagetitle()">Catalog Mode [Return]
Catalog Mode
## ## <% col = row = 0 %> % for thread in threads: <% # UGHH alttext = extutil.strip_html((cgi.escape(thread[0].subject) or thread[0].message or cgi.escape(thread[0].basename or '') or 'No.%d' % thread.id), 16).strip() # hack to make it 4 full / 8 half width chars max. alttext = alttext[:len(alttext.encode('sjis', 'replace')[:8].decode('sjis', 'ignore'))] fc = tt.filecount(thread) %> % if col == 0: % endif ## ## CAREFUL! weird tag splitting is necessary here to keep everything clean in the rendered html ## <% col = (col + 1) % CATALOG_COLUMNS %> % if col == 0: % endif % endfor % if col and len(threads) > CATALOG_COLUMNS: % elif col: % endif ##
${alttext|h} % else: >${alttext|h} % endif
${thread.length}${('/%d' % fc if fc else '')}${(' ' + sticky_icon() if thread.sticky else '')}

##