%import api, api.sx as sx %include iitpl/01.tpl r=r, rss=1 %if r.getl.lim == 'big': j_ = j[-1000:] %elif not r.getl.lim: %j_ = j[-100:] %else: %j_ = j %end %ml = [(n,api.get_msg(n)) for n in j_] %include iitpl/01m.tpl r=r, ml=ml, j=j
{{!api.ru(r.ea + '.header')}} %if r.getl.rev and j != j_:
Показываются только сообщения последней страницы. Чтобы начать читать тему вообще с самого начала, нажмите ссылку ВСЕ СООБЩЕНИЯ
%end %if r.getl.rev: %lst = ml %else: %lst = reversed(ml) %end %for n,mo in lst:

%if mo.repto: {{mo.subj}} %else: {{mo.subj}} %end {{mo.msgfrom}} to {{mo.msgto}}

{{! sx.rend(mo.msg) }}

%include iitpl/repbtn.tpl ea=r.ea, n=n, msgfrom=mo.msgfrom.encode('utf-8')
%end %if len(j) > 100: %end