{{extend "forums_layout.html"}} {{block content_main}}
{{if count > 0:}} {{from datetime import timedelta from uliweb.utils import date def is_new(d): if d and (d+timedelta(settings.get_var('PARA/NEW_DIFF_DAYS', 3)))>=date.now(): return True pass pass }} {{for c in categories:}} {{from uliweb.utils.timesince import timesince for f in c.forums.all().order_by('ordering'):}} {{pass}} {{pass}}
{{=c.name}} 主题 文章 最新文章

{{=f.name}}

{{=f.description}}

{{=f.num_topics}} {{=f.num_posts}} {{=f.get_display_value('last_post_user', f.last_post_user)}} {{if is_new(f.last_reply_on):}}{{pass}} {{if f.last_post:}}»{{pass}}{{=timesince(f.last_reply_on)}}
{{else:}}
× 还没有创建任何论坛,请由系统管理员来创建。
{{pass}}
{{end}}