%import api, api.sx as sx, points
%include iitpl/lite/01.lite r=r
Регистрация
%uname, uaddr = points.check_hash(r.auth)
%if uname:
:: {{uname}}
%end
%for ea,n in lst:
:: {{ea}}({{len(n)}})
%end
%obj = []
%mx = {}
%for ea,n in lst:
%if n:
%mm = api.get_msg(n[-1])
%mm.update({'msgid':n[-1], 'ea': ea, 'len': len(n)})
%obj.append(mm)
%end
%end
%for mo in sorted(obj,key=lambda a: a.date,reverse=True):
%#if sx.gts() - 259200 < mo.date:
| {{mo.msgfrom}} to {{mo.msgto}} |
{{mo.subj}} |
|
{{! sx.rend(mo.msg,mo.msgid) }}
|
| {{sx.dateg(mo.date,'%d/%m/%y %H:%M')}} |
читать эху {{mo.ea}} |
%#end
%end
%cfg = api.load_echo()
{{cfg[0][0]}}
%for ea,n in lst:
:: {{ea}}({{len(n)}})
%end