def register_default_users_list_pages(self): def can_see_online_list(request): return request.user.acl['can_see_users_online_list'] users_list.add_section(link='misago:users_active_posters', name=_('Active posters')) users_list.add_section(link='misago:users_online', name=_('Online'), visible_if=can_see_online_list)
def register_default_users_list_pages(self): def can_see_online_list(request): return request.user.acl['can_see_users_online_list'] users_list.add_section( link='misago:users_active_posters', name=_('Active posters')) users_list.add_section( link='misago:users_online', name=_('Online'), visible_if=can_see_online_list)
def register_default_users_list_pages(self): users_list.add_section( link='misago:users-active-posters', component='active-posters', name=_('Active posters'))
def register_oj_pages(self): users_list.add_section( link='oj:problems', component='problems', name=_('Online Judge'))